Difference between revisions of "ISALPHA()"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 36: Line 36:
 
[[Category:Expressions and Type Conversion]]
 
[[Category:Expressions and Type Conversion]]
 
[[Category:Expressions and Type Conversion Functions]]
 
[[Category:Expressions and Type Conversion Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Revision as of 07:11, 10 December 2012

Purpose

Function to test for an alphabetic character


Syntax

ISALPHA(<expC>)


See Also

ISDIGIT(), ISLOWER(), ISUPPER(), LOWER(), UPPER()


Description

The ISALPHA() function returns .T. if the first character of the character expression <expC> is alphabetic (i.e. lies within A-Z or a-z).


Example

store "965.23" to value
// If alpha assign 0
if isalpha(m->value)
    value = 0
else
    // convert to numeric
    value = val(m->value)
endif


Products

Lianja, Lianja Server