*... >>>browse name "myBrowse" when SetSomeProp() >>>*... >>> >>>function SetSomeProp >>>with myBrowse >>> .recordMark = .f. >>> .deletemark = .f. >>> .GridLines = 0 >>> .scrollbars = 2 >>> .AllowRowSizing = .f. >>> .AllowHeaderSizing = .f. >>> .Setall("DynamicBackColor","iif(recno()%2=0,255^3,255^2)","column") >>>*... >>>endwithOf course here I'm aware that when would fire too often. It has workarounds but this sample is fast enough not to apply.
function SetSomeProp >lnRecno = recno() >with myBrowse >*... >* .Setall("DynamicBackColor","iif(recno()%2=0,255^3,255^2)","column") > .Setall("DynamicBackColor","iif(recno()="+str(lnRecno)+","+; > str(.Columns(1).Text1.SelectedBackColor)+","+str(.Backcolor)+")","column") > .Setall("DynamicForeColor","iif(recno()="+str(lnRecno)+","+; > str(.Columns(1).Text1.SelectedForeColor)+","+str(.Forecolor)+")","column")Cetin