Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save changed grid class?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00130672
Message ID:
00130767
Vues:
16
Brenda,

You can in the Grid Destroy() save all the settings to a table, then read them at Init() time.

You might also be able to call the SaveAsClass() method and save the changed grid out and AddObject() the saved grid when the form runs.

If you feel lucky alter the Properties memo field of the form on the fly. The form would have to separate from the EXE for this to work though.

>>>added a grid class to a page of a pageframe. the client changes the appearance of the grid (partitions, moves the columns, increases the column width, etc). now i do some logic where i need to removeobject(grid) and then addobject(grid). want to addobject the changed grid. how do i save the changed grid to a class. i have control over the class name and can put the client id in the name and then do cleanup later. but how to i save an existing grid class (that is changed) into a new class? how can i tell if the grid has changed?
>>>

>you were very helpful in helping save the appearance of the grid before with the recordsource = 0, and the save column.controlsource. hoping you can help me in saving the changed grid class.
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