Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving Grid Columns Positions
Message
De
03/08/2009 08:41:30
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01285431
Message ID:
01415867
Vues:
70
Hi Naomi,

finished 3 weeks of paddling. See N 53°9''52.0" E 12°52'26.6" around and north

I like my solution because I only need the code to create the programm (e.g. to store the data). The restore needs minimal code to locate the right record and run the program via Execscript. There is also no data structure in it so it works for almost every form. I use it for dimensions of the form, splitter locations restore filter settings and so on.

Agnes
>Hi Agnes,
>
>Back to work? :)
>
>Nice idea of storing this info in a memo.
>
>>Naomi,
>>
>>thats the problem. (And Why I state below
>>>>the first problem is, how do you store your settings? There are several ways and that will define how to save them.
>>)
>>
>>I create a program and store it to a memo. On forms init it will be called via execscript.
>>
>>I have a class that will receive oStore as parameter and "build" the program to recreate oStore (all properties including arrays and objects).
>>
>>Same will be used for other properties of the form.
>>
>>The good on this approach is, that I do not need to maintain some structure for the properties. If for example a new colum will be added, I do not change a bit in the storage procedure.
>>
>>Agnes
>>>Hi Agnes,
>>>
>>>What do you do with this oStore object? In other words, how do you save it to be available in the next invocation of the form?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform