Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check variables
Message
 
To
04/08/2004 19:46:52
Mike Zhu
Icube Info International
Fremont, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00930854
Message ID:
00931558
Views:
20
>In VFP, variables are not predefined. Is there any tools to check all the varibeles or list them. Because if you type a wrong variable you won't know it until user run the program and get error. Thanks a lot.

Mike,

By default any variables declared as PRIVATE or LOCAL are initialized to .F.

What I do is to add the variables to a LOCAL statement as I first access or assign them.

This is really a problem with testing. If you properly test the code, then these issues go away.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform