WR描述性编程产生的错误,请帮忙,谢谢!~!
为什么我下面的描述性编程不对呢set_window("{class: window,label: Login}",3);
edit_set("{class: edit,attached_text: "Agent Name:"}","badroot");
password_edit_set("{class: edit,attached_text: "Password:"}","mercury");
button_press("{class: button,label: OK}");
报出的错误是
error in argument list ,line(2)
error in argument list ,line(3)
error in argument list ,line(4)
lz将描述性编程改为如下代码:
set_window("{class: window,label: Login}",3);
edit_set("{class: edit,attached_text: \"Agent Name:\"}","badroot");
edit_set("{class: edit,attached_text: \"Password:\"}","mercury");
button_press("{class: push_button,label: OK}");
当属性中要用到引号时,需在前面加上\做转义用,password_edit_set函数后面跟的是加密了的字符串,这里可以改为edit_set,最后button的class错了,应为push_button 谢谢版主!~! 请问下版主:
#Flight Reservation
set_window("{class: window,label: Flight Reservation}",4);
win_close("{class: window,label: Flight Reservation}");
我这里又错在哪里,运行后说: Syntax error!
还想问哪里有学习描述性编程的文档学习没?WR的联机帮助好象没看到 改为:
set_window("{class: window,label: \"Flight Reservation\"}",4);
win_close("{class: window,label: \"Flight Reservation\"}"); up sdlkfj9
页:
[1]