Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DeleteColumn method
Message
From
13/11/1997 10:29:05
 
 
To
13/11/1997 10:15:14
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00059933
Message ID:
00059936
Views:
27
>Dear All!
>
>You're my last hope...again <g>
>
>when I issue inside of grid's method (doesn't matter what method) the
>following:
>
>lnCurcol = this.ActiveColumn
>this.DeleteColumn(inCurCol)
>
>VFP crashes with infamous "Performed illegal operation". But when I issue
>the same commands from outside of grid, for example from Click event of
>Command button, all goes just fine, the column goes away.
>
>Any thoughts or advises will be greatly appreciated.

I cannot reproduce the problem, however I guess there are alot of workarounds, e.g. you can even move focus out of grid programmatically and fire some form method to delete a column. If for some reason, this will not work either, then eventually you can make Column.Visible=.f. instead of deletion.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform