Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change the SET DATE TO YMD to all the forms?
Message
De
29/03/1999 15:33:21
 
 
À
29/03/1999 15:31:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00203137
Message ID:
00203143
Vues:
17
Frank ---

And to dynamically change the SET DATE, put the code below in the GotFocus of a form (with a Refresh), that way any open forms will switch to the new format when clicked on.


>
>If you allow users to change the setting, you have to store it somewhere (in a table). Best bet is to store it in a systemprofile table and then load an application object property at startup from this table. Create a changedate method in the application object that manages the change and stores the change to persistant (table) storage.
>
>In the BeforeOpenTables of all Private DS forms, put SET DATE TO (oApp.UserDateFormat) or whatever you end up calling the property.
>
>BTW: In VFP6, you could always have oApp.UserDateFormat_Assign manage storing any user changes :-)
>
>
>>Since each form has their own data session, and the "SET DATE TO" only apply to each data session scope.
>>
>>If users change the "SET DATE TO YMD", how to globally change to all the forms' date format? Any idea?
>>
>>Thanks a lot.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform