Xbasic

*FIRST Function

Syntax

Result_Flag as L = *FIRST(C text,C word)

Arguments

text

A non-null character string. Character

word

A character string.

Description

Returns true if the text starts with the specified word.

Discussion

*FIRST() returns .T. (TRUE) if Find_Stringis found at the start of Search_In_String. Note: Do not confuse this function, which operates on a character expression, with the summary function FIRST() , which operates on a group of records.

Example

*first(LASTNAME, "MC") -> TRUE, if the LASTNAME field starts with the character string "MC"

Limitations

The Find_Stringargument is case sensitive.

See Also