SQAGetProperty获取pb程序的数据窗口中下拉框中的值
这是我的脚本dbresult=SQAGetProperty("\;Type=Window;Name=w_disable_phone_number;\;Type=DataWindow;Name=dw_1;\;Type=DWColumn;Name=dis_type;\;Type=DWColumn;Name=note","Value",debug)
返回1003错误码
是否因为"DropDownDataWindow,DropDownDW"robot没有识别.
下面是用inspector抓取的结构层次.
Window,Name=w_disable_phone_number
DataWindow,Name=dw_service
Node was not expanded
PushButton,Name=st_1
PushButton,Name=cb_exit
PushButton,Name=cb_save
PushButton,Name=cb_delete
PushButton,Name=cb_add
DataWindow,Name=dw_1
DWText,Name=kind_t
DWText,Name=service_kind_t
DWText,Name=dis_type_t
DWText,Name=name_t
DWText,Name=begin_phone_t
DWText,Name=end_phone_t
DWColumn,Name=kind
DWColumn,Name=service_kind
Node was not expanded
DWColumn,Name=dis_type
DropDownDataWindow,DropDownDW
DWText,Name=dis_type_t
DWText,Name=note_t
DWColumn,Name=dis_type
DWColumn,Name=note
DWColumn,Name=name
DWColumn,Name=begin_phone
DWColumn,Name=end_phone
GroupBox,Name=gb_1
[ 本帖最后由 wsryyffs 于 2006-6-1 13:49 编辑 ] 有人知道吗 大家帮帮忙呀
SQAGetProperty获取pb程序的数据窗口中下拉框中的值
dbresult=SQAGetProperty("\;Type=Window;Name=w_disable_phone_number;\;Type=DataWindow;Name=dw_1;\;Type=DWColumn;Name=dis_type;\;Type=DropDownDataWindow,Name=DropDownDW;\;Type=DWColumn;Name=note","Value",debug) 试了吗 ?"DropDownDataWindow,DropDownDW" 这层不太明确,后面的缩写好象是name
如果不行,我也不知道了,哈 dbresult=SQAGetProperty("\;Type=Window;Name=w_disable_phone_number;\;Type=DataWindow;Name=dw_1;\;Type=DWColumn;Name=dis_type;\;Type=DropDownDataWindow,Name=DropDownDW;\;Type=DWColumn;Name=note","Value",debug) 也试了,不好用
附件是通过pb源码察看该下列框的属性
页:
[1]