Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is a String or is a number??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01219572
Message ID:
01219574
Vues:
14
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform