|
附件是下面代码用到的程序
代码演示的是修改table中的数据,使用SQASetProperty函数
演示程序采用VB编写,希望对你有帮助
Sub Main
Dim Result As Integer
'Initially Recorded: 2005-11-1 11:34:13
'Script Name: table
StartApplication """C:\Documents and Settings\HailongWang\桌面\flex\Project1.exe"""
Window SetContext, "Type=Window;Name=Form1", ""
'定位到修改的单元格
result=SQASetProperty("Type=Generic;Name=MSF", "Row", 0)
result=SQASetProperty("Type=Generic;Name=MSF", "Col", 0)
'修改数据
result=SQASetProperty("Type=Generic;Name=MSF", "Text", "51Testing")
End Sub |
|