Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Methodology question
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Methodology question
Divers
Thread ID:
00461641
Message ID:
00461641
Vues:
41
Hi everybody,

We're using our own framework. In this FrameWork we have two Form classes, both of them have some code in Load event, which sets several common settings, e.g.:
set talk off
set ansi on
set exact on
set multilocks on
etc.

Now, let's assume this situation, which happens in one of my application:
One Form calls another form.
The first form has private DS and the second has default in order to share calling form DS. In the first form I excplicilty set SET EXACT OFF, because I need it this way. The other form would override my settings in its Load event and even worse, the calling form now would have a wrong setting as well. What can you suggest to resolve this problem.

I make a general assumption, but I'm not 100% sure, so I ask your advices:
-------------------------------------------------------------------------------
Let's make this Load code conditional (in wgForm Load event) and execute it only in case Form based on wgForm has a private DS (common case). BTW, this may apply to BaseForm as well, as I just realized.

This is probably a GENERAL RULE: if Form uses Private DS, it should set settings. If it uses Default DS, it usually means, it wants to accommodate the settings on the calling form/class/etc., so don't change the settings.
------------------------------------------------------------------------------
Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform