Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Distinct VIT: VT220: OnError

   Products   Downloads   Sales   Support   About us
  VIT



        
 

Summary

Local error has occurred.

Description

The OnError event occurs when a property is accessed in an illegal way or when a connection with the remote server cannot be established. The table below lists all possible error codes delivered by this event.

Value Meaning
ERR_CANNOT_GET_SOCKET Unable to allocate socket.
ERR_CANNOT_BIND_SOCKET Unable to bind socket to local address.
ERR_CANNOT_CHANGE_PORT Cannot change port while connected. An attempt was made to change the Port property while connected. Disconnect by calling the Disconnect method ( or setting the Action property to ACTION_DISCONNECT) before trying to change the Port property.
ERR_HOST_UNDEFINED Remote host must be defined before connecting. The Host property must be defined before calling the Connect method (or setting the Action property to ACTION_CONNECT.
ERR_CANNOT_CONNECT Unable to connect to remote host. The Port or the Host properties may be set incorrectly or the host may be down.
ERR_IN_ACTION Another action is in progress.
ERR_CANNOT_INITIALIZE Cannot initialize the emulation window.
ERR_INITIALIZE_TO_CONNECT You must initialize the emulation window, by calling the Initialize method, before connecting.
ERR_INITIALIZE_TO_WRITE Initialize emulation window before writing data to the emulation window.
ERR_CANNOT_DELETE_CONFIGURATION Unable to delete the specified configuration. The ConfigurationName property may be set to an invalid configuration name. Set the ConfigurationName property before calling the DeleteConfig method (or setting the VtAction property to VT_DELETE_CONFIGURATION).
ERR_CANNOT_SAVE_CONFIGURATION Unable to save the specified configuration. The ConfigurationName property may be set to an invalid configuration name. Set the ConfigurationName property before calling the SaveConfig method (or setting the VtAction property to VT_SAVE_CONFIGURATION).
ERR_CANNOT_CAPTURE_SCREEN Unable to capture data on screen to a file. The VT220 ActiveX control could not open or create the file to store the data on the screen.
ERR_CANNOT_CAPTURE_DATA Unable to capture incoming data to a file. The VT220 ActiveX control could not open or create the file to store the incoming data.
ERR_CANNOT_CONFIGURE_KEYBOARD Unable to configure keyboard.
ERR_CANNOT_CONFIGURE_TERMINAL Unable to configure terminal.
ERR_CANNOT_CONFIGURE_COLOR Unable to configure color.
ERR_CANNOT_SET_CUSTOM_FONT Unable to set custom terminal font.
ERR_CANNOT_SET_VTFONT Unable to set VT font.
ERR_CANNOT_SAVE_SETTINGS Unable to save configuration settings.
ERR_CANNOT_COPY_CLIPBOARD Unable to copy text to clipboard.
ERR_CANNOT_PASTE_CLIPBOARD Unable to paste text from clipboard.
ERR_CANNOT_CLEAR_CLIPBOARD Unable to clear clipboard text.
ERR_CANNOT_SELECT_PRINTER Unable to select a default printer.
ERR_CANNOT_SET_PRINTER_FONT Unable to set a default printer font.
ERR_CANNOT_SET_TRANSPARENT_MODE Unable to set printer transparent mode.
ERR_CANNOT_CAPTURE_SCREEN_FILE Unable to capture data on screen to CaptureFile. The VT220 ActiveX control could not open or create the file specified by the CaptureFile property to store the data on the screen
ERR_INVALID_INDEX There is an error in the co-ordinates specified by the GetText method.
ERR_CANNOT_CAPTURE_DATA_FILE Unable to capture incoming data to CaptureFile. The VT220 ActiveX control could not open or create the file specified by the CaptureFile property to store the incoming data.

Example

Sub VT220Client_OnError (ErrorCode As Integer)
If ErrorCode = ERR_CANNOT_CONNECT Then
MsgBox "Unable to connect to remote host", 64, "Sample Program"
End If
End Sub



Browse FAQ

Related Products
Mail Objects

Recommended Add-On
Network Monitor,
Protocol Analyzer


Raves
"The night before I went on summer holiday we had to make some 'last minute' configuration changes to approx. 300 routers, a tedious job to do manually with telnet. We went along with MS Excel containing a list of IP-adresses to the routers, and the VIT telnet-component. One hour later the VBA-application (small is beautiful) was working, and after another hour all of our routers were updated with the new configuration. I just say a big "Thanks" to you all for a good sleep that night."
Eirik Brendholen, Ergo Integration AS

"We conducted a test session to compare the performance of similar products, and Distinct's product was better!" [more]
Dr. Shyam Sunder, Carnegie Mellon University

"Together with Distinct, we were able to offer our users an ideal soution to enabling them to connect to Yahoo! Pager, and to do so both quickly and reliably." [more]
Brian Park,
Producer of Yahoo! Pager, Yahoo! Inc.


  8/21/2008   Legal notices | PRIVACY Policy | Networking News |