[求助]="IIf(recn()="+M_RECNSTR+",RGB(255,255,255),RGB(0,0,0))"这是什么意思
有这么一段代码:运行正常,但我搞不明白,M_RECNSTR明明是函数,为什么要加上两个+号,还要用引号..AfterRowColChange事件输入以下代码:
Lparameters nColIndex
Local m_recn,m_recnnum,m_i
m_recn=recn()
M_RECNSTR=ALLTRIM(STR(m_recn))
For m_i=1 to THIS.ColumnCount
This.columns[M_I].DynamicForeColor="IIf(recn()="+M_RECNSTR+",RGB(255,255,255),RGB(0,0,0))"
This.columns[M_I].DynamicbackColor="IIf(recn()="+M_RECNSTR+",RGB(0,0,0),RGB(225,225,225))"
Endfor
This.REFRESH