xyqy 发表于 2016-5-26 20:15:23

怎么参数化order no,我每次都到查询订单号的时候就停下了

Dim get_order_no
ger_order_no = Window("Flight Reservation").WinEdit("Order No:").GetROProperty("text")
DataTable.LocalSheet.AddParameter "get_order_no_col",get_order_no
Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set DataTable("get_order_no_col", dtLocalSheet)
每次到查询订单号的时候就停下了,

xyqy 发表于 2016-5-26 21:53:20

弄好了,在后面加个循环语句就好了Do while get_order_no=""
        wait(2)
        get_order_no = Window("Flight Reservation").WinEdit("Order No:").GetROProperty("text")
Loop

赵佳乐SMILE 发表于 2016-5-27 09:10:19

xyqy 发表于 2016-5-26 21:53
弄好了,在后面加个循环语句就好了Do while get_order_no=""
        wait(2)
        get_order_no = Window("Flight...

:victory:

赵佳乐SMILE 发表于 2016-5-27 09:10:30

xyqy 发表于 2016-5-26 21:53
弄好了,在后面加个循环语句就好了Do while get_order_no=""
        wait(2)
        get_order_no = Window("Flight...

:victory:
页: [1]
查看完整版本: 怎么参数化order no,我每次都到查询订单号的时候就停下了