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.