我用通配符定义了个无所谓名字的窗口,robot怎么不识别啊?
我用通配符定义了个无所谓名字的窗口,robot怎么不识别啊?function RMS_Err(wincap as string) as single
dim out as string
dim result as integer
Window SetContext, "Caption={ProGraphViewer*.tmp}", ""
Window SetContext, wincap, ""
Result=SQAGetpropertyasstring ("Class=AfxOleControl;ClassIndex=1","Text",out)
if out <>"" then
RMS_Err=val(getfield(out,4,","))
else
RMS_Err= 1000
end if
end function
win(2)= "Caption={ProGraphViewer*.tmp}"
call RMS_Err(win(2))
RMS(i)=RMS_Err(win(2))
里面当然不是这样写的,只是把主要的贴了下,请高手帮忙看看,怎么才能识别出窗口,拿出要用的值那? 高手快现身吧 已经发现问题了,是前面的数组定义的不准确
页:
[1]