Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column looses it's name
Message
De
27/04/2001 10:29:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Grid column looses it's name
Divers
Thread ID:
00500688
Message ID:
00500688
Vues:
50
I've got a weird problem to which I can't find the cause.

I have a form with multiple controls, including a grid. This grid has multiple columns, and in one of the methods that are called when the data is requeried, we reassign properties to this column. Most of the time, everything works fine.

However, there are 2 forms which seems to cause a problem to this one. I just have to open any of those 2 forms, close it, and then open my above mentionned form. When it gets to the code that reassign properties, it state that "object colImp not found" (colImp is of course the name of the colum). If I go in debug, all the columns now have the default names (column1, column2, column3, etc.)

This only happens if I open one of the two other forms. Opening none or any other form does not cause the problem.

I've worked around the problem like this:
IF TYPE("THISFORM.GrdDT.ColImp") == "O"
	THISFORM.GrdDt.colimp.ControlSource = [IIF(tmpDtJour.imprime,"","Ê")]
	THISFORM.GrdDt.colimp.Sparse = .F.
	THISFORM.GrdDt.colimp.text1.FontName = "WebDings"
ELSE
	THISFORM.GrdDt.column2.ControlSource = [IIF(tmpDtJour.imprime,"","Ê")]
	THISFORM.GrdDt.column2.Sparse = .F.
	THISFORM.GrdDt.column2.text1.FontName = "WebDings"
ENDIF
but I still don't understand what's going on...

TIA!
Sylvain Demers
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform