Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C00005 Error
Message
De
14/09/2001 15:46:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
14/09/2001 13:42:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00555753
Message ID:
00556741
Vues:
20
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform