InfoConnect for Airlines VBA Guide
TelnetEnvironment Property
Gets or sets a string that is passed to an "Exit program" on an AS/400 host when InfoConnect makes a Telnet connection.
Syntax
Object.TelnetEnvironment As String
Exceptions
ExceptionDescription
System.ArgumentException This exception is thrown if the set parameter is longer than the maximum allowed.
Attachmate.Reflection.SecuredSettingException This exception is thrown when you modify a property that was secured via the Permissions Manager, or that can only be modified by an Administrator.
Remarks
Exit programs run when a Telnet session is either initiated or terminated and use this format:

keyword=value; keyword=value; keyword=value

When you use Auto SignOn (AutoSignon = True), InfoConnect automatically signs on to the host using the current values of the UserName and Password properties. You can set TelnetEnvironment to specify additional, non-default sign on options using any of the following keywords in the Exit program string:

  • Sets the program to call (equivalent of the Sign On menu's Program/procedure option).
  • Sets the initial menu (equivalent of the Sign On menu).
  • Sets the current library (equivalent of the Sign On menu's Current library option).

You cannot change the value of this property while you are connected. This property applies only to 5250 terminal sessions using Telnet.

See Also