Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C00005 Error
Message
From
14/09/2001 15:46:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
14/09/2001 13:42:04
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00555753
Message ID:
00556741
Views:
19
>>Did you keep the grid's recordsource while manipulating the column? Maybe it's a little more bound to the data now; if you unbind it, would it work?
>
>No. I tried to set recordsource to empty grid as the code below, but
>C5 error occurs always.
>I have found that C5 error occurs only if grid contains a combobox.
>If grid contains only textboxes, no error will occur.

What I had in mind is to remove the recordsource before removing the columns. Also, if this doesn't work, did you have any luck with .removeobject()ing columns one by one?
* Form Change layout method
this.MousePointer = 11   &&& hourglass
_screen.mousepointer = 11
* this this is removed, grid columncount will not go to zero.
this.cmdFormSwitch1.setfocus()
crrecords = this.gridbase1.recordsource
this.gridbase1.recordsource = ''   && Dragan hint <b>here</b>
this.gridbase1.columncount = 0
this.cmdFormSwitch1.FindNextLayout(thisform.brtabel)
this.gridbase1.recordsource = crrecords
this.gridbase1.Init()
this.gridbase1.setfocus()
this.mousepointer = 0
_screen.mousepointer = 0

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform