Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.ini files
Message
 
 
À
31/10/1998 10:21:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00150938
Message ID:
00154325
Vues:
30
>>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

I've decided not to make it user specific. Generally, there's only one user per computer anyway.

Thanks,

-Michelle
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform