Add a LeavingOutstandingLoggedRequestState event to the Events tab in the Properties - Object dialog box.
A new line appears in the Events list.
Select ActiveX Event in the Event field.
Select LeavingOutstandingLoggedRequestState in the ActiveX Event field.
Configure the event's procedure.
Click the Menu button to the right of the Action field.
Select New Procedure.
The Procedure Information dialog box opens.
Configure the procedure as follows:
Enter Busy_0 in the Procedure name field.
Select Variable assign in the Action type field.
Click the Browse button to the right of the Variable ID field.
Select BUSY from the popup menu.
Enter 0 in the Variable value field.
Result: The Events tab displays the configured LeavingOutstandingLoggedRequestState event in the Events list.
Steps for using Wait State functionality example.