Difference between revisions of "ISDIGIT()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to check to see if the first character in a given character expression is a digit | Function to check to see if the first character in a given character expression is a digit | ||
− | |||
==Syntax== | ==Syntax== | ||
ISDIGIT(<expC>) | ISDIGIT(<expC>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ISALPHA()]], [[ISLOWER()]], [[ISUPPER()]] | + | [[ISALPHA()]], [[ISLOWER()]], [[ISUPPER()]], [[STR_SIZE()]] |
− | + | ||
==Description== | ==Description== | ||
The ISDIGIT() function will return .T. if the first character of the given character expression is a value within the range of 0 to 9, and .F. otherwise. | The ISDIGIT() function will return .T. if the first character of the given character expression is a value within the range of 0 to 9, and .F. otherwise. | ||
− | |||
==Example== | ==Example== | ||
Line 23: | Line 19: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[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 04:42, 29 April 2020
Contents
Purpose
Function to check to see if the first character in a given character expression is a digit
Syntax
ISDIGIT(<expC>)
See Also
ISALPHA(), ISLOWER(), ISUPPER(), STR_SIZE()
Description
The ISDIGIT() function will return .T. if the first character of the given character expression is a value within the range of 0 to 9, and .F. otherwise.
Example
? isdigit("9 Belmont Ave") .T. ? isdigit("Nine Belmont Ave") .F.