Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric or string ??
Message
 
 
À
09/02/2005 09:39:31
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
00985094
Message ID:
00985153
Vues:
31
>>Jim,
>>
>>"1 2 3" doesn't look like a number to me.
>>
>
>Sergey,
>
>Not to me either. But what Hans wanted was to find out whether or not the user entered just numbers in his character field. He already knew the type of the data was character.

No, he wanted to know if user entered a number or character expression. Your code would return type "N" for "1 2 3" but VAL("1 2 3") returns 1.00 which is incorrect.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform