njpilot172
Programmer
I'm 1 step away from completing my attendance program.
I am trying to figure out a way to add a checkbox to all but the first column in a grid that has a columncount of -1.
I need to do this because I do not know how many columns the grid will contain (length of program in days) until the underlying queries are actually run.
I'm thinking of doing something like:
lnColCount = .ColumnCount
FOR lnKnt = 2 TO lnColCount
.column(lnknt).AddObject("chk1","checkbox")
.column(lnKnt).currentcontrol = "chk1"
.column(lnKnt).sparse = .F.
ENDFOR
Of course you can't reference ".column(lnKnt)" in real life.
This is the part I'm trying to figure out.
My other option is to manually create a grid with 254 columns of checkboxes and remove the columns that I do not need (YUCK!!!).
Any help would be appreciated (I ended up being the only reply to my first post).
Todd
I am trying to figure out a way to add a checkbox to all but the first column in a grid that has a columncount of -1.
I need to do this because I do not know how many columns the grid will contain (length of program in days) until the underlying queries are actually run.
I'm thinking of doing something like:
lnColCount = .ColumnCount
FOR lnKnt = 2 TO lnColCount
.column(lnknt).AddObject("chk1","checkbox")
.column(lnKnt).currentcontrol = "chk1"
.column(lnKnt).sparse = .F.
ENDFOR
Of course you can't reference ".column(lnKnt)" in real life.
This is the part I'm trying to figure out.
My other option is to manually create a grid with 254 columns of checkboxes and remove the columns that I do not need (YUCK!!!).
Any help would be appreciated (I ended up being the only reply to my first post).
Todd