Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to extract grid props when form closes?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00302791
Message ID:
00302844
Views:
24
>I'm trying to extract the column widths from a grid when the form is closed, so I can store them in the registry and use them the next time the user opens that form.
>
>When I try to extract the values in the Form's UNLOAD via:
>
>THISFORM.Grid1.Column2.Width
>
>I get an error that the object GRID1 does not exist -- so I figure the grid must be destroyed before the form unloads. I went ahead an put the code into the GRID's DESTROY event instead - but I still get the same error.
>
>Where would be the appropriate place to put this code, so I pick up the values as the form is closed? Do I have to go to each COLUMN's DESTROY event?
>
>TIA

Do this in the QueryUnload if you have determined that the form can be closed.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform