Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Checks whether a list contains a given value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
List 5.0 Yes Yes Yes Yes Yes
MBS( "QuickList.HasValue"; ListRef; Value )   More


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


Returns 1, 0 or error.


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


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

Blog Entries

Created 12nd November 2014, last changed 12nd December 2014

QuickList.HasDuplicateItems   -   QuickList.InsertValue

Feedback: Report problem or ask question.

MBS Xojo Plugins