General information
Title:
Grid does not recognize its column member
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only