Information générale
Catégorie:
The Mere Mortals Framework
>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!
Most of the SET commands are scoped to the datasession, so everytime you start a new session, it goes back to VFP's default values, unless you add code to use your saved values. If you've found a spot where MM doesn't do it, you should forward that to Kevin (if he hasn't read it here already).
Chris.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement