Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column looses it's name
Message
From
28/04/2001 07:31:51
 
 
To
27/04/2001 10:29:51
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00500688
Message ID:
00501209
Views:
24
Hi!

Look to FAQ#8019, Grid Reconstruction Behavior. Probably your columns in grid got reconstrycted bu VFP because some reason.

>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!
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform