>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