Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declaring variable data types - how?
Message
 
To
29/09/1999 20:36:00
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00270814
Message ID:
00270819
Views:
23
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform