In the following example, the House_Entry window is open. The lookup button to open the House_Entry_Lookup window is clicked. The House_Entry_Lookup window is opened and becomes active (indicated by the NewActiveWin command). An item is selected and the House_Entry_Lookup window is closed. The House_Entry window becomes active again (indicated by the NewActiveWin command).
CheckActiveWin dictionary 'default' form 'House_Entry' window 'House_Entry' MoveTo field 'Lookup Button'[1] ClickHit field 'Lookup Button'[1] NewActiveWin dictionary 'default' form 'House_Entry_Lookup' window 'House_Entry_Lookup' MoveTo field '(L) Select' ClickHit field '(L) Select' NewActiveWin dictionary 'default' form 'House_Entry' window 'House_Entry'
In the following example, the Monthly Payment button in the House_Entry window is clicked, but not all required fields contain data, so a message is displayed.
NewActiveWin dictionary 'default' form 'House_Entry' window 'House_Entry' MoveTo field '(L) Monthly Payment Button' ClickHit field '(L) Monthly Payment Button' # Not all required data has been entered. NewActiveWin dictionary 'default' form DiaLog window DiaLog ClickHit field OK NewActiveWin dictionary 'default' form 'House_Entry' window 'House_Entry'