Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if a variable is numeric
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01038827
Message ID:
01038830
Views:
11
IF ISALPHA(Transform(lcCur)) OR ISALPHA(Transform(lcPrev)) then

...not sure what your code does there, but in any event you can use TRANSFORM() and not have to worry about the data type, it will always be converted into text.

>I need to test if a variable is numberic and if so convert it to character.
>
>The code I am currently using:
>IF ISALPHA(STR(lcCur)) OR ISALPHA(STR(lcPrev)) then
>
>The variable 'lcCur' and 'lcPrev' can be character or numeric. The following error occurs:
> Function argument value, type or count is invalid
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform