Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

List.ValueIndex

Finds the index for a given value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
List 5.4 Yes Yes Yes Yes Yes

MBS( "List.ValueIndex"; List; Value )

Parameters

Parameter Description Example value
List The list of texts to search. "Hello"
Value The text to find. "Hello"

Result

Returns index, nothing or error.

Description

Finds the index for a given value.
Returns zero based index (0 = first list value).
Returns empty result if not found.
Comparison is case insensitive.

Examples

Searches a word in a list:

# Returns 4
MBS( "List.ValueIndex"; "Hello¶1¶2¶3¶World"; "world" )


List.Sort   -   List.XOr

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins