Partager via


ISALPHA( ) Function

Determines whether the leftmost character in a character expression is alphabetic.

ISALPHA(cExpression)

Return Value

Logical

Parameters

  • cExpression
    Specifies the character expression that ISALPHA( ) evaluates. Any characters after the first character in cExpression are ignored.

Remarks

ISALPHA( ) returns true (.T.) if the leftmost character in the specified character expression is an alphabetic character; otherwise ISALPHA( ) returns false (.F.).

Example

CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'Data\testdata')
USE Customer     && Open customer table
CLEAR 

DISPLAY contact
? ISALPHA(contact)  && Displays .T.
DISPLAY maxordamt
? ISALPHA(cust_id)  && Displays .F.

See Also

Reference

ISLOWER( ) Function

ISUPPER( ) Function

LOWER( ) Function

UPPER( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)