ArrayFind


 

ArrayFind>array_name,text_to_find,result,use_regex[,suffix_format]

 

Searches an array for the given text and returns the first matching index. Performs an exact match against the full text of the entry unless use_regex is set to 1 in which case a text_to_find can be a regex expression. Stops at the first matching index and returns the index of the item in result.

 

See also: ArrayCopy, ArrayRename, ArrayCount, ArrayDim, ArraySort, DelArray, Arrays

Abbreviation: ARF

 

Example:

 

ArrayDim>Names,3

Let>Names_1=Fred

Let>Names_2=Sally

Let>Names_3=John

ArrayFind>Names,Sally,nIndex,0

ArrayFind>Names,Jo.*?,nIndex2,1