Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.ini files
Message
De
31/10/1998 10:21:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00150938
Message ID:
00153160
Vues:
28
>That's cool. It sounds like that would be good for general system variables, but I don't think it would be good for saving the grid settings. I don't want a bunch of variables for that.
>
>Thanks,
>
>-Michelle

It doesn't seem like a bunch of variables if you have everything in an array. I'm convinced that a simple array would be enough to store all grid settings. For example:
*After user made his/her prefferences
DIMENSION gaGrid[1]
FOR i=1 TO Thisform.Grid.ColumnCount
gaGrid[i] = Thisform.Grid.Columns(i).Width
ENDFOR
SAVE TO < UserID >.MEM ALL LIKE gaGrid*
********
* Grid.Init()
RESTORE FROM < UserID >.MEM
FOR i=1 TO This.ColumnCount
This.Columns(i).Width = gaGrid[i]
ENDFOR
Danijel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform