Xbasic
*LEADING Function
Syntax
Result_Flag as L = *LEADING(C text,C word)
Arguments
- text
A non-null character string.
- word
A character string.
Description
Look for word starting with, word (or words) in text, return true if found, false if not found.
Discussion
*LEADING() returns .T. (TRUE) if Find_String matches the first part of any word in Search_In_String. A word is any sequence of characters separated on either end by spaces, punctuation marks, or the beginning or end of the field. Case sensitive.
Example
*leading(PHONENUMS, "245") -> TRUE, if any 7 digit phone number in the PHONENUMS field starts with "245"
Limitations
The Find_String argument is case sensitive.
See Also