Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to extract grid props when form closes?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Where to extract grid props when form closes?
Miscellaneous
Thread ID:
00302791
Message ID:
00302791
Views:
63
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
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Next
Reply
Map
View

Click here to load this message in the networking platform