Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring variable data types - how?
Message
De
29/09/1999 20:45:49
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
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:
00270825
Vues:
21
Peter,
VFP is weakly typed, meaning you don't need to do anything.
MyVariable = Anything
You may use a naming convention, or use a name that indicates the type.
The only declaring is LOCAL, PRIVATE, PUBLIC, and most prefer LOCAL. Arrays are DECLARED, but that's about it.
LOCAL MyDate
DECLARE aBunch[2,2]
Charlie

>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
Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform