Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric only...
Message
 
To
21/03/2001 09:47:53
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00487191
Message ID:
00487196
Views:
9
>
IF EMPTY(m.id) OR ISNULL(m.id) OR NOT LEN(CHRTRAN(m.id," ",""))=8
>
>The above code works well. But, I need to also check to see if it's all numeric too (0-9), can not have any alpha. I tried the below code but won't work. The field person.id is character and so is m.id. How to do about this?
>
>
BETWEEN(m.id,VAL(CHR(48)),VAL(CHR(57)))
If m.id is character the above will generate an "operator/operand mismatch" error. However, BETWEEN(m.id, '0', '9') works fine. There's also the ISDIGIT() function to test if a particular character is numeric or not in a string.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform