在计算按钮用如下代码:
sum=0
FOR i=1 TO thisform.text1.Value
sum=IIF(MOD(i,3)=0,sum+i,sum)
ENDFOR
thisform.text2.Value=sum
thisform.text2.Refresh
在计算按钮用如下代码:
sum=0
FOR i=1 TO thisform.text1.Value
sum=IIF(MOD(i,3)=0,sum+i,sum)
ENDFOR
thisform.text2.Value=sum
thisform.text2.Refresh