wangdongting 发表于 2009-1-12 15:02:24

参数化问题,谢谢帮忙看下

Window("Flight Reservation").Activate
Window("Flight Reservation").ActiveX("MaskEdBox").Type "022509"
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("FlyFrom", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("FlyTo", dtGlobalSheet)
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").Activate

Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "14243   DEN   12:57 PM   FRA   01:41 PM   SR   $110.00"

Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Type "w"
Window("Flight Reservation").WinEdit("Name:").Set "w"

Window("Flight Reservation").WinRadioButton("First").Set
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").WinButton("Button").Click

但是run到红色那行出错,我应该怎么处理比较好呢?

李志智 发表于 2009-1-12 16:07:28

转换到 Keyword view 视图中,在value这一列单击Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "14243   DEN   12:57 PM   FRA   01:41 PM   SR   $110.00" 所对应的#号,弹出 value configuration option 对话框后,选择parameter->Random number。
把这段设置成随机数,你才能运行成功。

wangdongting 发表于 2009-1-13 18:11:59

谢谢,可以run了:loveliness:
页: [1]
查看完整版本: 参数化问题,谢谢帮忙看下