Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change the SET DATE TO YMD to all the forms?
Message
From
29/03/1999 15:33:21
 
 
To
29/03/1999 15:31:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00203137
Message ID:
00203143
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform