You should be able to define a Column class in code, and give the method code there, and just .AddObject each additional column. The class definition of course needs to be in the scope of the form.
HTH!
Mark
>Help:
>
>I'm 1 day from needing to be finsihed. Thought I successfully added columns only when I have enough screen "real estate". Now I find that there is an underlying array in a incremental search grid, and there are methods needed for the new columns that don't exist. I found .WriteExpression and .WriteMethod, as they were used in a "builder", but they aren't available at Runtime. This project is stuck in VFP 5.0a. Any suggestions welcomed!
>
>Mike
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.