代码问题
请高手们帮我分析以下代码,在运行时出现错误,说是 locate for 试题号=asth1(curflag1)操作符/操作类型不匹配,怎样来解决这个问题呢?其中curflag1,tmun2为公共变量。.........
For lnCnt=1 To tmun2
Do While .T.
lnRecord=Int(Rand()*Reccount()+1)
Go lnRecord
If !Deleted()
Delete
Exit
EndIf
EndDo
EndFor
dime asth1(tmun2)
store 试题号 to asth1(tmun2)
............
for curflag1=1 to tmun2
do while !eof()
curflag1=curflag1+1
locate for 试题号=asth1(curflag1)
replace xf with .t.
enddo
endfor