Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable declaration scope
Message
From
21/12/2005 11:00:32
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01079865
Message ID:
01079879
Views:
13
Make global system object turn all public variables
into that object properties.
This way modules when they are called and released can release their own
publics without interfearing with calling exe values.

BTW You know the drill about public variables, unless you have to keep them in modules for some reason - get rid of them as much as possible.



>We use a menu that calls VFP compiled EXE's and many of the EXE's have PUBLIC var declarations with RELEASE ALL at the end. We want to release variables when the exe is done but keep some menu-level vars in memory. The issue now is that one or two of our many, many EXE's seem to get an error 1960 "Illegal Redefinition of variable..." which I believe is related to this problem. Any suggestions?
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform