Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for numeric char in a string
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00582918
Message ID:
00582923
Views:
35
Hi,

You may do this

FUNCTION NUMINSTR(STRING)

FOR I = 1 To LEN(STRING)
IF SUBSTR(STRING,I,1) $ "0123456789"
RETURN .T.
ENDIF
NEXT
Le travail est un moyen, pas une fin.

Louis Hudon
Hydro-Québec
Informatique en Équipement
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform