Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing SET values with preference form
Message
De
23/04/2004 15:05:00
Steven Kleypas
Tarrant County College District
Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Changing SET values with preference form
Divers
Thread ID:
00897751
Message ID:
00897751
Vues:
50
Fellow MM'ers

I'm not understanding why SET values are not being maintained throughout an application. Via the preference form, values for SET CENTURY and SET TIME are being saved to the Registry (This works fine). In the cSessionEnvironment of the CGlobalEnvironment (in aAPP), code was added to the Set method which would read the value from the Registry, with lSetDefaults = .T., just like the native class does with Set Century. (This works fine).

The problem comes when instantiating a form, where the forms cSessionEnvironment changes it back to the default value (or it appears to be doing it there, even though lSetDefaults is .F. at design time). It is my understanding that if the value is set in the cSessionEnvironment of CGlobalEnvironment, it becomes the default for the entire application.

I can force it to work by pasting code in the MM cSessionEnvironment.Set class, but I know this is not the right way. Any ideas? Thanks in advance!

Steve
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform