Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to re-create all columns in grid
Message
From
13/09/2001 16:52:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Best way to re-create all columns in grid
Miscellaneous
Thread ID:
00556193
Message ID:
00556193
Views:
60
I have a command F3 "change grid form" in my form.
This command destroys all grid columns and then adds new columns to grid.

To destroy columns I use
  this.gridbase1.columncount = 0  && C5 error occurs in this line
I tried also
  DO WHILE this.gridbase1.columncount>0
    this.gridbase1.DeleteColumn   &&& C5 error occurs in this line
    ENDDO
Using those commands in VFP 7 will cause C5 error sometimes. This works in VFP 5.

Is there a way to re-create grid columns to avoid C5 error ?
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform