TTMSFNCUtils.GetStrIdx Method
Returns the index of a matching value in an array.
API unit family: TMSFNCUtils
Declaring type: TTMSFNCUtils
Syntax
class function GetStrIdx(AValue: string; AArray: array of string; ACaseSensitive: Boolean; AExpression: Boolean = True): Integer;
Parameters
| Name | Description |
|---|---|
AValue |
Value to find. |
AArray |
Candidate values or expressions. |
ACaseSensitive |
When True, comparison preserves case. |
AExpression |
When True, array items are treated as match expressions; otherwise exact comparison is used. |
Returns
Zero-based index of the first match, or -1 when no match is found.