Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
QuickList.HasValue
Checks whether a list contains a given value.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| List | 5.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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
- List.HasValue
- QuickList.AddValue
- QuickList.Free
- QuickList.GetValue
- QuickList.InsertValue
- QuickList.New
- QuickList.SetValue
Blog Entries
Created 12nd November 2014, last changed 12nd December 2014
QuickList.HasDuplicateItems - QuickList.IndexOfFirstValueMatching
Feedback: Report problem or ask question.
Links
MBS FileMaker blog