Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if a variable is numeric
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01038827
Message ID:
01038830
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform