Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declaring variable data types - how?
Message
From
29/09/1999 20:45:49
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
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:
00270825
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform