一、
Dim status
status=Datatable("status",dtGlobalsheet)
If status="用户不存在" Then
Window("Flight Reservation").Close
elseif status="登录成功" Then
Dialog("Login").WinEdit("Agent Name:").Set datatable("un",dtGlobalsheet)
Dialog("Login").WinEdit("Password:").SetSecure datatable("ps",dtGlobalsheet)
Dialog("Login").WinButton("OK").Click
End If
status=Datatable("status",dtGlobalsheet)
If status="用户不存在" Then
Window("Flight Reservation").Close
elseif
Dialog("Login").WinEdit("Agent Name:").Set datatable("un",dtGlobalsheet)
Dialog("Login").WinEdit("Password:").SetSecure datatable("ps",dtGlobalsheet)
Dialog("Login").WinButton("OK").Click
End If
备注:改程序有没有意义?
------------------------
------------------------
二、
Dim status
Window("Flight Reservation").Close
Dialog("Login").WinEdit("Agent Name:").Set datatable("un",dtGlobalsheet)
Dialog("Login").WinEdit("Password:").SetSecure datatable("ps",dtGlobalsheet)
Window("Flight Reservation").Close
Dialog("Login").WinEdit("Agent Name:").Set datatable("un",dtGlobalsheet)
Dialog("Login").WinEdit("Password:").SetSecure datatable("ps",dtGlobalsheet)
status=Datatable("status",dtGlobalsheet)
If status="用户不存在" Then
Reporter.ReportEvent micFail, "登陆", "登陆失败."
elseif status="登录成功" Then
elseif
Window("Flight Reservation").Close
End If
End If
备注:程序跑不通
DataTable 设计为:
| | |
| | |
| | |