>LPARAMETERS nColIndex > >this.Parent.txt1.Value=this.Columns[nColIndex].header1.caption >this.Parent.txt.Value=this.Columns[nColIndex].header1.Alignment >this.Parent.txt3.Value=this.Columns[nColIndex].header1.Fontsize >this.Parent.txt4.Value=nColIndex >>
if pcount()=0 set step on endifafter the lParameters statement, and see how did it get called. Maybe something in the framework, or parent classes, or whatever - calls the grid.ARCC code for its own reasons, without passing a parameter. I know I do that at times, and I know it's a bit dirty thing to do.