Event - Trigger
See Also: Overview Implementation Properties Methods Events
Sub object_Trigger (event_num As Long, event_data As Long)
<event_num> is the Trigger Code event ID – 0 through 50
<event_data> is the Trigger Code event data
Example of use found in:
Implementing EZ Trial and EZ Trial Sample
If a Trigger Code was entered by the ShowTriggerSession method or the TCode method, this event fires with a parameter value from 1 to 50 to represent the function to be executed. If <event_num> is zero, the user entered an invalid code. If <event_data> is -1, either TCRegKey2Seed parameter is not correct, or the user entered an invalid number.
Sub object_Trigger(event_num As Long, event_data As Long)
Select Case event_num
MsgBox "Authorization Successful!"
MsgBox "Invalid code entered!"