Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid does not recognize its column member
Message
From
26/06/1998 13:18:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Grid does not recognize its column member
Miscellaneous
Thread ID:
00111987
Message ID:
00111987
Views:
91
I am encountering some strange behavior that has me baffled. I am debugging a form, with a container that contains a grid. In the Init method of the grid I set some column properties with the statement:

THIS.ColP1.DynamicFontName = "THIS.Parent.GetDynaFont()"
THIS.ColP2.DynamicFontName = "THIS.Parent.GetDynaFont()"
etc.

This runs fine for the first three to five of times that I RUN the form. Then, for no reason that I can determine, I will get an 'Unknown member COLP1' error when I try to load it the next time. The debugger says that the grid Init method is the current routine in the call stack and when I examine 'THIS' in the watch window, it has an object ColP1 in its heirarchy which I can expand and verify that it has a name of "ColP1"

It is behaving as though the column object has not been instantiated yet, even though the debugger says that it has. I can solve the problem by quitting FoxPro and starting it again, but ultimately I need to find what is causing the difficulty and eliminate it, so that it won't happen in production.

Any suggestions?

Pamela
Next
Reply
Map
View

Click here to load this message in the networking platform