Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String to Integer Conv VFP50
Message
De
08/04/1998 12:42:21
 
 
À
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:
00090496
Vues:
23
>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.

Assume:

cVar = Character (string) variable "100.00"

The code is:

nVar = INT(VAL(cVar))

nVar = 100

There is no specific integer type variable in VFP
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform