Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is a String or is a number??
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01219572
Message ID:
01219574
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
IF VARTYPE(ValueInTheCell) = "C"
  * String
>Is there a function that can help me to determinate if the content of a cell (or a variable)is a String or a number??
>
>I´m trying to get some values from Excel. Sometimes, the value starts with a letter (E-100000) and others just the number. The field in the table is Character. I´m trying to do something like this:
>
>
>If (SomeFunctionToSpecifyIfNumber) then
>     replace mytable.myfield with alltrim(str(ValueInTheCell))
>else
>     replace mytable.myfield with ValueInTheCell
>endif
>
>
>Any idea?? Thanks in advance!
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform