this.column&lcix..header1.Caption = ;I wasn't quite sure how to use the macro expansion here. I didn't realize that you could place the macro expanding variable right next to the "this.column" and have it work. This worked very well. My code is different based on the needs, but your code gave me the clue I was looking for.
i = 2 FOR i = 2 TO (nRecs + 1) lcIx = ALLTRIM(STR(i)) .Column&lcIx..Header1.Caption= + ;I keep hearing about iterating through a collection, but I have not yet understood this and there is little in the books I have to really explain it thoroughly; although I find it quite useful and interesting, I'd like to see some place where it is explained more fully.