Worth Data 7000 Stereo System User Manual


 
Terminal ID is always passed as 0-63. A Terminal ID value of 99 indicates an error.
Once you have the event handler skeletons, you can proceed to add whatever functionality you desire to
each event.
You must call the OpenDevice method before any events can be fired.
OnTermBaseRegister
Event: An attached base station has successfully powered up and communicated with the host
computer via the serial connection.
OnTermSignIn15
Data passed:terminal
Event: A 15-line terminal has signed in. Terminal ID is passed in terminal.
OnTermSignIn6
Data passed:terminal
Event: A six-line terminal has signed in. Terminal ID is passed in terminal.
OnTermSignIn4
Data passed:terminal
Event: A four-line terminal has signed in. Terminal ID is passed in terminal.
OnTermSignOut
Data passed:terminal
Event: A terminal has signed out. Terminal ID is passed in terminal.
OnTermData
Data passed:terminal, data
Event: A terminal has sent data in response to an Input method call.
OnTermNotSignedIn
Data passed:terminal
Event: A command has been sent to a terminal that is not signed in.
OnTermSequenceError
Data passed:terminal
Event: The one-for-one host prompt/terminal response protocol has been violated. The host cannot
send a second Input command until it has received a response from the first Input command.
If a base station receives 5 sequence errors in a row, a Host Logic error is generated and the
base shuts itself down.
While PromptCom/ActiveX will intercept and prevent most logic errors, they are
still possible so you should implement this event handler!
OnTermIllegalCommand
Data passed:terminal
Event: An illegal command has been sent to a terminal.
PromptCom/ActiveX is designed to prevent illegal commands but software is not
always perfect and we may not have imagined all the ways in which our customers will
want to use it!
OnTermUpArrow
Data passed:terminal
Event: The up-arrow button has been pressed on a terminal. You must issue another Input