Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid does not recognize its column member
Message
De
26/06/1998 13:18:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Grid does not recognize its column member
Divers
Thread ID:
00111987
Message ID:
00111987
Vues:
90
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform