Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declaring variable data types - how?
Message
 
To
29/09/1999 20:45:49
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00270814
Message ID:
00270982
Views:
28
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform