torturedmind
Programmer
here is a simple code for changing DynamicForeColor or DynamicBackColor of a grid with unknown number of columns.
local curcol
with this
.recordsourcetype = 1
.recordsource = "dbsched"
for i = 1 to .columncount
curcol = "column" + alltrim(str(i))
.&curcol..dynamicforecolor = ;
"iif(not dbsched.dbactive, rgb(128,128,128), rgb(0,0,0))"
endfor
endwith
hope this helped the newbies...
kilroy![[trooper] [trooper] [trooper]](/data/assets/smilies/trooper.gif)
local curcol
with this
.recordsourcetype = 1
.recordsource = "dbsched"
for i = 1 to .columncount
curcol = "column" + alltrim(str(i))
.&curcol..dynamicforecolor = ;
"iif(not dbsched.dbactive, rgb(128,128,128), rgb(0,0,0))"
endfor
endwith
hope this helped the newbies...
kilroy
![[trooper] [trooper] [trooper]](/data/assets/smilies/trooper.gif)