Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring variable data types - how?
Message
 
À
29/09/1999 20:36:00
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00270814
Message ID:
00270819
Vues:
22
>I need to set up some variables and I need to ensure they are datatyped correctly for field types. How do I declare a local variable....
> TEXT
> INTEGER
> NUMERIC
> CURRENCY
> DATE
>
>
>Thanks

Pater,

You don't, VFP is not a strongly typed language. Vars can change type on the fly.

If you want to initialize them then you can do this;
LOCAL lcVar, ltVar, lnVar
lcVar = ""
ltVar = {}
lnVar = 0
Integer and numeric are the same in memvars as are currency, double, and float.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform