Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String to Integer Conv VFP50
Message
 
À
08/04/1998 12:38:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00090491
Message ID:
00090508
Vues:
22
>Hello once again, me and my Vfp50 illiterate companions have once again found a problem our limited experience can't solve. How do you convert a String containing an integer to and integer variable. I apologize for the simplicity of the problem.

It depends what you mean by 'integer' - VFP does not have an equivalent to C integer type. Do you mean 'numeric variable' - if so, see other replys. If you mean that you have a C style integer, use ASC(variable) - this will give the ASCII value of the first character in a string variable returned as a numeric variable. Example: string='abc', num=ASC(string), num then contains 49.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform