初试 form 的 Init 事件好像有点问题:BINDEVENT()调用未被执行?
nh1=thisform.grid1.column1.Width
*thisform.width=nh1*7+4
thisform.height=RECCOUNT()*18+38
cts(9)=cts(9)-thisform.Width
thisform.Left=cts(9)
thisform.Top=2
thisform.label2.Left = 12
thisform.label2.Top = 1
thisform.label2.Caption = cts(1)
thisform.grid1.top=18
thisform.grid1.left=2
thisform.grid1.height=thisform.height-2
thisform.grid1.width=thisform.width-2
STORE 0 to nr1,nr2,nr3,nn1,nn2,nn3,nn4
nn5=2
SCAN while .not. EOF()
nn1=nn1+1
FOR nn2=1 to 7
ccm1="dow"+TRANSFORM(nn2)
IF EMPTY(EVALUATE(ccm1))
LOOP
ENDIF
ccm2="dts"+TRANSFORM(nn2)
ccm3="djs"+TRANSFORM(nn2)
nn3=IIF(EMPTY(EVALUATE(ccm2)),0,RGB(255,0,0))
nn4=IIF(EMPTY(EVALUATE(ccm3)),0,RGB(255,255,128))
IF nn3=nn4
LOOP
ENDIF
MESSAGEBOX("到此已经跳出循环体,循环体内以下代码未被执行")
......
......