Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can we persist objects in VFP
Message
 
 
À
31/03/1999 04:27:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00203785
Message ID:
00204088
Vues:
15
Dimitris,

What Dimitry posted is a good solution, but I'd say it's better to give a grid subclass the ability to save restore it's settings. Read them from the persistent store you use (system registry or table) in the grid.Init() and save them to the store in the grid.Destroy()

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform