>FOR EACH oCol IN this.Columns > oCol.DynamicBackColor = [IIF(oCol.mytext1.oldvalue > ; > oCol.mytext1.value, RGB(0,255,0), RGB(255,0,0))] >NEXT > >this.column1.DynamicBackColor = [IIF(nse_feed.change > 0, RGB(0,255,0), RGB(255,0,0))] >this.column1.mytext1.value = '' > >***** > > >this runs but nothing happens except on the first column >FOR EACH oCol IN this.Columns > oCol.DynamicBackColor = [IIF(]+oCol.mytext1.oldvalue+[ > ]+ ; > oCol.mytext1.value +[, RGB(0,255,0), RGB(255,0,0))] >NEXT > >this.column1.DynamicBackColor = [IIF(nse_feed.change > 0, RGB(0,255,0), RGB(255,0,0))] >this.column1.mytext1.value = '' >If you have property in TextBox Class that you use for Column Control, try this (not tested)
FOR EACH oCol IN this.Columns oCol.DynamicBackColor = [IIF(thisform.Grid1.]+oCol.Name+[.mytext1.oldvalue > ]+ ; [thisform.Grid1.]+oCol.Name+[.mytext1.value, RGB(0,255,0), RGB(255,0,0))] NEXT