Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring variable data types - how?
Message
 
À
29/09/1999 20:45:49
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00270814
Message ID:
00270982
Vues:
27
>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]

Hi Charlie - I thought vfp was referred to as "untyped." Weakly typed, or so I recall, was a language like Fortran (I think) where typing was optional. BTW, I had never heard of DECLAREing an array before, but I see it's quite valid. Is that a legacy from dbase or something?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform