Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugger
Message
De
19/02/2016 12:18:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
19/02/2016 11:44:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Oracle
Application:
Desktop
Divers
Thread ID:
01631676
Message ID:
01631756
Vues:
92
>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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform