新人发问-----Error:解析函数Call错误
本帖最后由 xiaohang 于 2009-5-2 14:44 编辑代码如下,请高手帮帮忙指点下,可能是小问题,但我不知如何解决........
........
.......
While 1;;主程序
If WinActive("考工总") Then
$var1=StringLeft(ControlGetText("考工总","","Edit1"),14)
_SingleForm_QuestionAnswer($var1)
Sleep(3000)
EndIf
If TimerDiff($T) >=100000 Then;;
ExitLoop
EndIf
WEnd
Func _SingleForm_QuestionAnswer($AnswerSingle)
Select
Case $AnswerSingle =StringLeft("在C语言中在C语言中在C在C在C",14)
$temS = "B"
_Lable_Changevisible($temS)
Case $AnswerSingle =StringLeft("SQL数据库中主数据文件的扩展名",14)
$temS = "B"
_Lable_Changevisible($temS)
...........
...省略....
............
EndSelect
EndFunc
........
.......
运行后如果窗口("考工总","","Edit1")的内容字数少于14个的话就会出错
如果不加StringLeft 不会出错的 为什么呢??? 看错了... - -||| sorry.
页:
[1]