JavaScript Editor js editor     Web development 



Main Page

Determines whether the leftmost character of the specified character expression is a digit (0 through 9).

ISDIGIT(cExpression)

Parameters

cExpression


Specifies the character expression that ISDIGIT(В ) tests. Any characters after the first character in cExpression are ignored.

Return Value

Logical

Remarks

ISDIGIT(В ) returns true (.T.) if the leftmost character of the specified character expression is a digit (0 through 9); otherwise, ISDIGIT(В ) returns false (.F.).

Example

В Copy Code
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'Data\testdata')
USE orders  && Open Orders table
CLEAR 

DISPLAY cust_id
? ISDIGIT(cust_id)  && Displays .F.
DISPLAY order_dsc
? ISDIGIT(ALLTRIM(STR(order_dsc)))  && Displays .T.

See Also



JavaScript Editor js editor     Web development