Assume that a[x,2] should be a date. But the array is empty when the browse is shown first. It's to be filled later.
Code: Select all
DCBROWSECOL DATA {||DC_GetColArray(2,oBrowse,,EmptyDate()} COLOR {|d|IF(Year(d)=Year(Date()),{GRA_CLR_GREEN,GRA_CLR_BLACK},oBrowse:RowColor())}
Edit: It works well without the color codeblock.