Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can we persist objects in VFP
Message
From
31/03/1999 07:01:04
 
 
To
31/03/1999 04:27:16
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00203785
Message ID:
00203795
Views:
15
Hi, namesake!

>I was trying to "persist" a grid object meaning to save the modifications of the grid made by the users by using the saveasclass method, but i have problems with it. Here is the scenario:
>1. you cannot save the class with the same name when it is beeing used
>2. The aboved has been solved by saveasclass() with different name removing the referenced class from memory deleting it from the library and renaming the saved class to the original.
>3. Still VFP seems to beeing saving the original class definitions (not the modified properties ...)
>What is happening here??? How to have a (sort of) object persistense in VFP?

You better store significant grid/column property values in the Registry. Load and apply them in Form Init and write in Form QueryUnload.
Virtually yours, Dmitry

mailto: me@duginov.com * www.duginov.com * ICQ UIN 6769428
Previous
Reply
Map
View

Click here to load this message in the networking platform