Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to save user's environment
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00535841
Message ID:
00535871
Views:
20
>In my form baseclass, I have the following in the Form RELEASE:
>if This.lSaveFormSettings
>   if vartype(goApp) = "O" and !isnull(goApp)
>      goApp.SaveFormSettings(This)
>   endif
>endif
>I also have a form property called lSaveFormSettings that is set to FALSE if I do not want to enable this feature for the current form. goApp is my global application object. This method actually does some minor stuff then calls another method in a PRG based class that does all the saving of the form environment. Since I pass an object reference to the form, I can get to any object and property on the form.

Thanks, Mark. Seems like a way to go. Do you also have a RestoreSettings methods of your global object? How do you handle multi-user problem? Do you store info in a table (memo fields, similar to ideas showed by Robert) or you use some system files? Where do you usually store them?

Sorry for all these questions, but I'd like to hear more details, if possible.

Thanks again.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform