Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global setting of SYSFORMATS to ON does not
Message
De
27/07/2009 12:17:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01414773
Message ID:
01414777
Vues:
27
>>Hi all,
>>Is this the expected behavior of setting the SYSFORMATS when globally set to ON? Even using the CONFIG.FPW will still default SYSFORMATS to OFF. Outside of subclassing the Session class, is there a way to globally set SYSFORMATS to OFF ?
>>
>>set sysformats on
>>oSession = createobject('clsSession')
>>*--------------------------------
>>define class clsSession as session 
>>   procedure init
>>      ? set("Sysformats") && OFF
>>   endproc
>>enddefine
>>
>
>The Help clearly states "SET SYSFORMATS is scoped to the current data session."
>
>So, it means you need to add it in the Init method of your session based class and there is no way to make a global change.
>
>However, you can create a simple small class that will set all the settings to the desired state and restore them in its Destroy. Then you would add this class to your other class as a member and set it to NULL in the Destroy method of your other class.

Hi Nancy,
Thank you for the reply. I was hoping to be able to set it globally as noted in Help as "or, if issued during the default data session, for the duration of the Visual FoxPro session. "

Anyway, it looks like there is no global way to set SYSFORMATS. I will probably do something similar to what you suggested.
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform