Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column looses it's name
Message
From
27/04/2001 10:29:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Grid column looses it's name
Miscellaneous
Thread ID:
00500688
Message ID:
00500688
Views:
49
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
Next
Reply
Map
View

Click here to load this message in the networking platform