Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Methodology question
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00461641
Message ID:
00461873
Vues:
14
>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.

Hi, Nadia.
As you are talking about a strange exception (actually, one doesn't ussually change SETS from their accustomed default so often), I think the best thing would be to wrap the SET changes around the code that actually uses them.

Most surely you need to change EXACT in a method or two, so you can set and restore it state there. The closer the code to set and restore can be, better, IMHO.

That way, you can just rely on a stable environment.

Hope this helps. Good luck.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform