当Windev 无法编译时,Compile() 方法返回错误。
例如(正确的代码):
teller is int = hnbrec("client")
result teller
此代码返回客户端数据文件中的项目数量。
但是当我打错字时:
teller is int = hnbrec("client")
result telles //should be teller
Windev没有提到错误......
但是当我打错字时:
teller iss int = hnbrec("client") //should be is
result teller
它抛出一个语法错误,告诉我它无法识别 iss。
如何检查第二个示例以使其抛出错误?
编辑:但是当我执行代码时
ExecuteProcess("<the process name>", trtProcedure)
进程会返回一个错误,说它不知道telles...但是我不想执行这个进程,我只需要检查它并将其写入数据库。