Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strict typing...
Message
From
14/11/2001 14:23:48
 
 
To
14/11/2001 02:11:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00581332
Message ID:
00581702
Views:
16
Paul,

You cannot enforce types in VFP, but can generate error output for undeclared variables in VFP7 with this setting:
_VFP.LanguageOptions=1
Look up the topic "LanguageOptions Property" in VFP7 help.

>Is it possible to force VFP to strictly type variables and properties...for instance I can do this:
>
>local xyz as number
>
>xyz=""
>
>and it retains the string. I have to say that I would rather it gave me an error, preferably at design time.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform