Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugger
Message
From
19/02/2016 12:18:54
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
19/02/2016 11:44:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Oracle
Application:
Desktop
Miscellaneous
Thread ID:
01631676
Message ID:
01631756
Views:
93
>The other alternative is to class(ify) each form, but the work involved adding dodefault() to each and every object and method thereof on each form - I would be here for years - lol!
>
>I don't suppose there is a universal dodefault() that will do it for every object and method in a class...

If you need common functionality put it in some (form) class and instantiate this to _SCREEN like
_SCREEN.AddProperty('goHelper',NEWOBJECT('youclass','yourvcx'))
(if NEWOBJECT is not available in VFP 7 CREATEOBJECT might do too, or - VFP9. [eg] )
instead of calling THISFORMSET call _SCREEN.goHelper

if yourclass is a form with private DE and all other forms are open in that DE you are done - without formset.

Anyway consider to go to VFP9. Most of us think in VFP9 for an eternity and it's a pain to figure out the limitations of VFP7 ...
There is for example SESSION class that can act as your anchor, but I have no idea if this is availbale in 7.
And it looks like we might see this for some time ...
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform