Difference between revisions of "ISALPHA()"
From Lianjapedia
Helen.george (Talk | contribs) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to test for an alphabetic character | Function to test for an alphabetic character | ||
− | |||
==Syntax== | ==Syntax== | ||
ISALPHA(<expC>) | ISALPHA(<expC>) | ||
− | |||
==See Also== | ==See Also== | ||
[[ISDIGIT()]], [[ISLOWER()]], [[ISUPPER()]], [[LOWER()]], [[UPPER()]] | [[ISDIGIT()]], [[ISLOWER()]], [[ISUPPER()]], [[LOWER()]], [[UPPER()]] | ||
− | |||
==Description== | ==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). | 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== | ==Example== | ||
Line 26: | Line 22: | ||
endif | endif | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== | ||
Line 32: | Line 27: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category: | + | [[Category:Formatting Functions]] |
[[Category:String Data Functions]] | [[Category:String Data Functions]] | ||
− | |||
− | |||
[[Category:Lianja VFP Extensions]] | [[Category:Lianja VFP Extensions]] | ||
[[Category:VFP Function Extensions]] | [[Category:VFP Function Extensions]] |
Latest revision as of 08:16, 4 February 2013
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