使用 SQAGetPropertyAsString
我使用 SQAGetPropertyAsString,取最简单的数据都不行,代码见下:result=sqagetpropertyasstring("\;window,name=frmMain","windowstate",checkstate)百思不得其解,请执教~!! 你首先要确定这个控件有WindowState这个属性阿,这个函数不是单独使用的 你用SQAGetPropertyAsString测试的是vb开发的程序,
我觉得修改
sqagetpropertyasstring("\;window,name=frmMain","windowstate",checkstate)
Sub Main
Dim Result As Integer
Dim checkstate as Variant
'Initially Recorded: 2004-11-623:31:52
'Script Name: test
Window SetContext, "Caption=Form1", ""
Result = sqagetpropertyasstring("\;Caption=Form1","WindowState",checkstate)
if Result then
msgBox checkState
end if
End Sub
页:
[1]