|
table = "default.xls";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(table,table_RowCount);
for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)
{
ddt_set_row(table,table_Row);
# workspace
set_window("workspace",4);
button_press("添加");
web_sync(6);
edit_set("rolename",ddt_val(table,"rolename"));
pause(ddt_val(table,"rolename"));
edit_set("rolenote",ddt_val(table,"rolenote"));
button_press("确定");
button_set("check",ON);
button_press("删除");
}
ddt_close(table); |
|