Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.ini files
Message
From
04/11/1998 10:16:42
 
 
To
31/10/1998 10:21:13
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00150938
Message ID:
00154325
Views:
32
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform