Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

QuickList.HasValue

Checks whether a list contains a given value.

Component: List
Version: 5.0
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "QuickList.HasValue"; ListRef; Value )

Parameters

Parameter Description Example value
ListRef The reference to the list returned from QuickList.New function. $List
Value The value to check. "Hello"

Result

Returns 1, 0 or error.

Description

Checks whether a list contains a given value.
Returns 1 if value is found or 0 if not. Text comparison is case sensitive.

Examples

Checks if list contains value:

Set Variable [$q; Value:MBS("QuickList.New"; "Hello¶World")]
Show Custom Dialog ["Contains World"; MBS("QuickList.HasValue"; $q; "World")]
Show Custom Dialog ["Contains Test"; MBS("QuickList.HasValue";$q; "Test")]
Set Variable [$r; Value:MBS("QuickList.Free"; $q)]

See also


QuickList.GetValue   -   QuickList.InsertValue

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Nachhilfe in Plaidt