Verastream SDK for Airlines
Visual Basic Sample Code

The VBEvents application demonstrates how to connect to the host via UTS or T27 and how to receive events from screen objects. This application contains an interface with text fields and buttons that allow you to execute several SDK methods, and windows display the screen output and status.

VBEvents is located in <Installation Location>\Samples\VB. If you did not install the VSDK COM/.NET Support option, this sample application is unavailable.

Interface Element Description/SDK Method
Host Type radio buttons Select a UTS or T27 connection.
Application text box (UTS only)

Enter the name of the host application.
TSAP text box (UTS only)

Enter the Transport Service Access Point to use to access the specified host application (up to 32 characters).
Hostname text box Enter the DNS name or IP address of the host you want to connect to.
Terminal ID text box Enter the terminal ID for the session.
Input text box Enter data that you want to send to the host, and then click the appropriate button to send it.

For instance, if you want to send a special key, enter the appropriate keystroke, and then click Send Keys.
Request Screen button Calls the requestScreenEx() method to get a screen object.
Open button Click this button to open the session using the Open() method.
Close button Click this button to close the session using the Close() method.
Send Keys button Click this button to send characters and special keys using the sendKeys() method.
Get Text button Click this button to get the text contents of the presentation space as a string using the getText() method.
Get Cursor button Click this button to get the current cursor position using the getCursor() method.
Add SL button Click this button to add the addIScreenListenerEx() method, which allows your application to receive event notifications.
Raw Data button Click this button to write an array of bytes directly to the host without going through the presentation space (uses the RawDataTransmit() method).
Capt Data button Click this button to get the currently captured data as a string using the getCapturedData() method.
Clear button Click this button to clear the status display window.
Remove SL button Click this button to remove the removeIScreenListenerEx() method.
Status Window pane Displays the status of the session.
Screen pane Displays the presentation space (24x80).

 

For more information about UTS or T27 parameters, such as Application and TSAP, see the various XML parameters in Requesting a T27 Screen Object and Requesting a UTS INT-1 Screen Object.

 

Related Topics
ActiveX Technologies Supported
Development Tools Supported