Host Explorer Programming
Host Explorer Programming
This is a draft version of the HostExplorer API Help. To get the latest version of the Help,
contact Hummingbird Technical Support.
Hummingbird Ltd.
1 Sparks Avenue, North York, Ontario, Canada M2H 2W1
Main: +1-416-496-2200
Fax: +1-416-496-2207
E-mail: support@hummingbird.com
FTP: ftp.hummingbird.com
Hummingbird Technical Support hours are from 8:00 a.m. to 8:00 p.m., Monday to Friday.
• Profile object
• Parser objects
• Transport objects
A functional diagram illustrates how COM objects work together to access host data from the
mainframe.
The most common libraries are:
• HostExplorer 3270 Type Library
• HostExplorer 5250 Type Library
• HostExplorer VT Type Library
• HESession 1.0 Type Library
In Visual Basic, you can add the visual controls (for example, 3270, 5250, and VT type libraries)
to the project by clicking Component on the Project menu. You can add objects such as
HESession and HEOhio by clicking References on the Project menu. When you add the
objects, they become available in a drop-down menu. Using this drop-down menu, you can
select objects in Dim statements, as well as other Visual Basic statements.
When you are using the visual controls and you add the basic object, this object is displayed on
the component bar. When you add the selected control to a form in the project, Visual Basic
automatically creates the object. In the following example, Visual Basic automatically creates
the Session and Transport objects. Visual Basic automatically creates other objects after you
connect to the session, therefore, you must assign references to these objects. In the following
example, the active control is named My3270 in the project. This control is an instance of the
HE3270Terminal object that you added as a visual component to the project:
Example:
Dim MySession As HESession
Dim MyTransport As Object
…
Set MySession = My3270.Session
Set MyTransport = My3270.Transport
OHIO
OHIO is a developing standard; it addresses the need for a standardized programming interface
to host data. HostExplorer provides Ohio interfaces, which contain methods and properties that
you can use to access different types of host data.
The Ohio object consists of classes, such as OhioManager and OhioSession, as described in
the draft IETF standard. This standard is available using anonymous login at the following ftp
site: ftp://ftp.boulder.ibm.com/software/standards/ohio.
In Visual Basic, you typically declare objects in one of the following formats:
• Dim OManager As HEOHIOLib.OhioManager
• Dim OSession As OhioSession
After you add the HEOhio 1.0 Type Library, the most common library for Ohio, to the project
references list, either of the two formats will work. OhioManager, OhioSession, and HEOHIOLib
appear in the drop-down menu that is displayed when you type the Visual Basic “AS” keyword.
Note: In Ohio, you must create the object as follows:
Set OManager=CreateObject(“HEOhio.OhioManager”)
Legacy APIs
In addition to COM objects and OHIO, HostExplorer provides the following existing, or “legacy,”
APIs:
• EHLLAPI (Extended HLLAPI) and WinHLLAPI (Windows HLLAPI)—Allow other Windows
programs (for example, Attachmate® Extra! for Windows) to communicate and control
HostExplorer terminal emulators.
• DDE (Dynamic Data Exchange)—A tool that allows programs (for example, Microsoft
Excel, Word, and Visual Basic) to communicate with the HostExplorer 3270 emulator.
While these APIs are less efficient and use larger and more rigid objects than COM and OHIO,
you can still use them to write applications and thus avoid rewriting your own code.
HostExplorer’s support of these earlier APIs helps maximize an organization’s investment in its
development.
Related Topics
About COM Objects
About OHIO
About Legacy APIs
Advise Commands
Related Topics
About the Terminal Objects
About the Profile Object
About the Parser Objects
About the Transport Objects
Relationship Between COM Objects
The following diagram illustrates the relationships between the following four COM objects:
• Terminal
• Profile
• Parser
• Transport
Related Topics
About COM Objects
Transport Object
• AddFeature method
• Feature property
• RemoveFeature method
Related Topics
Renamed or Moved COM Methods and Properties
Renamed or Moved COM Methods and Properties
For version 8.0, certain methods, properties, and other items have been renamed or moved.
Profile Object
The following interfaces have been renamed:
Former Name New Name
ProfileEditing ProfileEdit
ProfilePrintExplorer ProfilePrintSession
ProfileSaveFile ProfileCapture
ProfileVTPrint ProfileHostPrinting
The following properties have been moved from one interface to another:
Property Former New Interface
Interface
Transport Object
The following properties have been renamed:
• DeviceName property (now available as the LUNameRequested property)
• KerberosUsername, KerberosAlternateUsername, and KerberosVersion (now available as
the SetKerberosInfo method)
• LockOnAttention property (now available as a configurable feature of the Parser objects)
Parser Object
The following properties have been renamed:
• CellDelimited property (now available as the CellCopyMode property)
• Feature property (now available as the GetFeature and SetFeature methods)
• NextFieldKey property (now available as the OnPasteFieldModeTabCharacter property)
• NRC property (now available as the NRCID property)
• ReplaceFieldAttributeWith property (now available as the
OnCopyReplaceFieldAttributeWith property)
• VTUPSS property (now available as the UPSS property)
• WrapLines property (now available as the AutoWrap property)
• XferMode property (now available as the TransferMode property)
• XferErrorCode property (now available as the TransferErrorCode property)
Related Topics
Unsupported COM Methods and Properties
Croatian 0x020A
Sample of Hex3270.hxl
The following is a sample of Hex3270.hxl, the language-conversion table for TN3270
terminals:
[English-US C370 CECP V2 (1047)] The language string as it
appears in the Translation
Table Options dialog box
under the Terminal interface.
Albania-MNCS 0x0142
Austrian/German-273 0x0100
Austrian/German-1141 0x0101
Austrian/German-MNCS 0x0102
Belgian-MNCS 0x0103
Belgian-1148 0x0103
Bosnian/Herzegovinian-870 0x014C
Brazilian Portuguese-037 0x0105
Bulgarian-1025 0x010A
Croatian-870 0x0109
Cyrillic-880 0x010B
Czech-870 0x010C
Danish-277 0x010D
Danish-1142 0x010E
Danish-MNCS 0x0143
Dutch-037 0x010F
Dutch-1140 0x0144
Dutch-MNCS 0x0110
UK English-285 0x0111
UK English-1146 0x0112
UK English-MNCS 0x0145
US English-037 0x0113
US English-1140 0x014D
US English-MNCS 0x0146
Estonian-1122 0x0115
Finnish-278 0x0116
Finnish-MNCS 0x0114
Finnish-1143 0x0117
Hungarian-870 0x0120
Icelandic-1149 0x0121
Icelandic-871 0x0122
Icelandic-MNCS 0x011B
Italian-280 0x0123
Italian-1144 0x0124
Italian-MNCS 0x0125
Latin-2-870 0x0126
Latvian-1112 0x0127
Lithuanian-1112 0x0128
Norwegian-277 0x012B
Norwegian-1142 0x012C
Norwegian-MNCS 0x011D
Polish-870 0x012D
Portuguese-037 0x012E
Portuguese-MNCS 0x012F
Portuguese-1140 0x0130
Romanian-870 0x0131
Russian-1025 0x0133
Serbian Cyrillic-1025 0x0134
Slovenian-870 0x0135
Slovakian-870 0x012A
Spanish-284 0x0136
Spanish-MNCS 0x012A
Spanish-1145 0x0132
Swedish-278 0x0139
Swedish-1143 0x013A
Swedish-MNCS 0x014B
Turkish-1026 0x013F
Ukrainian-1123 0x0140
Sample of Hex5250.hxl
The following is a sample of Hex5250.hxl, the language-conversion table for TN5250
terminals:
[US English-037] The language string as it appears in the Translation
Table Options dialog box under the Terminal interface.
HP Roman 9 0x001D
Sample of VT_UPS.hxl
The following is a sample of VT_UPS.hxl, the UPSS language-conversion table for TNVT
terminals:
[PC English (437)] The language string as it appears in the VT
Character Set dialog box under the Terminal
interface.
None 0x0000
Sample of VT_NRC.hxl
The following is a sample of VT_NRC.hxl, the NRC language-conversion table for TNVT
terminals:
[ISO German] The language string as it appears in the VT Character Set
dialog box under the Terminal interface.
Hex23=0x23 The new byte character that replaces the original value at
the same character position.
The HEPARSER_VALUE data type enumerates the configurable properties of the Parser
objects. It has the following values:
HOSTEX_VALUE_HEEVENTS
HOSTEX_HLLAPI_UPDATED_FLAG
HOSTEX_UPDATED_FLAG
HOSTEX_HOST_NOTIFICATION
HOSTEX_BELL_MARGIN
HOSTEX_LEFT_MARGIN
HOSTEX_RIGHT_MARGIN
HOSTEX_DISPLAY_IN_OIA
HOSTEX_VT_PASSTRU_UPSS
Related Topics
Method: IHEParser::GetValue
The HOSTEX_ATN_FORMAT data type consists of the type of sequences that you want to
send to the host.
It has the following values:
HOSTEX_ATN_FORMAT_IBM Indicates that the format is compatible
with IBM emulators.
HOSTEX_ATN_FORMAT_WALLDATA Indicates that the format is compatible
with WallData emulators.
HOSTEX_ATN_FORMAT_ATTACHMATE Indicates that the format is compatible
with AttachMate® emulators.
Related Topics
Property: IHETransport::AttentionFormat
Property: IHEProfile::AttnFormat
Related Topics
Property: IHEParser::CaptureMode
The HOSTEX_CELL_DELIMITED data type specifies how HostExplorer parses screen data
when copying data to the Clipboard in cell-delimited format.
It has the following values:
HOSTEX_CELL_DELIMITED_WORD Indicates that HostExplorer parses screen
data at words.
HOSTEX_CELL_DELIMITED_FIELD Indicates that HostExplorer parses screen
data at field attributes.
Related Topics
Property: IHEParser::CellCopyMode
Property: IHEProfileEdit::CellDelimited
Related Topics
Property: IHEParser::ConnectBy
Property: IHEProfileConnection::ConnectBy
Property: IHETerminal::ConnectBy
The HOSTEX_CON_STATUS data type specifies the current status of your connection to the
host.
It has the following values:
HOSTEX_CON_STATUS_DISCONNECTED Indicates when you are fully
disconnected from the host.
HOSTEX_CON_STATUS_CONNECTED Indicates when you are fully
connected to the host.
HOSTEX_CON_STATUS_CONNECTING Indicates the status from the time
you issue a Connect command to
the host to the time you are
actually connected to the host.
HOSTEX_CON_STATUS_DISCONNECTING Indicates the status from the time
you issue a Disconnect command
to the host to the time you are fully
disconnected from the host.
Related Topics
Property: IHETransport::ConnectionStatus
The HOSTEX_CUT_MODE data type indicates what occurs on the screen after you cut text. By
default, this data type is set to HOSTEX_CUT_MODE_DELETE_TEXT.
It has the following values:
HOSTEX_CUT_MODE_REPLACE_WITH_ SPACES Indicates that the
cut text is replaced
with blank
characters.
HOSTEX_CUT_MODE_REPLACE_WITH_ NULLS Indicates that the
cut text is replaced
with nulls (or zeros).
HOSTEX_CUT_MODE_DELETE_TEXT Indicates that the
cut text is deleted
and not replaced by
any characters.
Related Topics
Property: IHEParser::Cutmode
HOSTEX_DEVICE_TYPE Data Type
The HOSTEX_DEVICE_TYPE data type specifies the device type to be used with the Transport
objects.
It has the following values:
HOSTEX_DEVICE_TYPE_DISPLAY Indicates that the Transport objects are used
with a display terminal.
HOSTEX_DEVICE_TYPE_PRINTER Indicates that the Transport objects are used
with a printer device.
Related Topics
Property: IHETransport::DeviceType
The HOSTEX_ENCRYPTED data type specifies the encryption level of the session.
It has the following values:
HOSTEX_IS_NOT_ENCRYPTED Indicates that the session is not encrypted.
HOSTEX_IS_PARTIALLY_ENCRYPTED Indicates that the session is partially
encrypted.
HOSTEX_IS_ENCRYPTED Indicates that the session is fully encrypted.
Related Topics
Property: IHETransport::IsEncrypted
Related Topics
Property: IHEProfileConnection::EnterKeyInterpretation
The HOSTEX_FUNCTION_KEY data type specifies the value that you can request the
Transport object to send to the host.
It has the following values:
HOSTEX_FUNCTION_KEY_SYSTEM_ REQUEST Executes a system-
request command to
the host.
HOSTEX_FUNCTION_KEY_SEND_ ATTENTION Executes an
attention command
to the host.
HOSTEX_FUNCTION_KEY_SEND_ ABORT_OUTPUT Executes an abort-
output command to
the host; this
command stops the
process.
Related Topics
Method: IHETransport::SendFunctionKey
Related Topics
Property: IHEProfileGraphics::PSCellSize
Related Topics
Property: IHEParser::GraphicsCursorType
Property: IHEProfileGraphics::GraphicsCursorType
Related Topics
Property: IHEProfileHotspots::DisplayStyle
Related Topics
Property: IHEProfileHotspots::MouseActivation
HOSTEX_INSERT_KEY_STYLE Data Type
The HOSTEX_INSERT_KEY_STYLE data type specifies how the Insert key option operates.
It has the following values:
HOSTEX_INSERT_KEY_STYLE_RESET Indicates that the Insert-key option is on
until you press the Reset key.
HOSTEX_INSERT_KEY_STYLE_ACTION Indicates that the Insert-key option is on
until you press an action key, such as
Enter or Clear.
Related Topics
Property: IHEProfileConnection::KeyboardBufferMode
The HOSTEX_KEYBOARD_TYPE data type specifies the type of keyboard to use for the
current session.
It has the following values:
HOSTEX_KEYBOARD_TYPE_PC_84 Indicates that the PC keyboard has 84
keys.
HOSTEX_KEYBOARD_TYPE_PC_101 Indicates that the PC keyboard has 101
keys.
HOSTEX_KEYBOARD_TYPE_PC_102 Indicates that the PC keyboard has 102
keys.
HOSTEX_KEYBOARD_TYPE_DEC_LK450 Indicates that the DEC keyboard is an
LK450 model.
HOSTEX_KEYBOARD_TYPE_IBM_3270 Indicates that the IBM keyboard is a
3270 model.
HOSTEX_KEYBOARD_TYPE_PC_104 Indicates that the PC keyboard has 104
keys.
HOSTEX_KEYBOARD_TYPE_PC_105 Indicates that the PC keyboard has 105
keys.
Related Topics
Property: IHEProfileKeyboard::KeyboardType
Related Topics
Property: IHEProfileConnection::VTLineMode
The HOSTEX_NEXT_FIELD_KEY data type specifies how HostExplorer tabs to the next field
on the screen. By default, this data type is set to HOSTEX_NEXT_FIELD_KEY_COMMA. You
can set this data type only when the HOSTEX_PASTE_MODE data type is set to
HOSTEX_PASTE_MODE_PASTE_FIELD.
It has the following values:
HOSTEX_NEXT_FIELD_KEY_NONE Indicates that HostExplorer does not
interpret any of the characters as the
next field key.
HOSTEX_NEXT_FIELD_KEY_TAB Indicates that HostExplorer tabs to the
next field using the Tab character.
HOSTEX_NEXT_FIELD_KEY_COMMA Indicates that HostExplorer tabs to the
next field using the Comma character.
HOSTEX_NEXT_FIELD_KEY_PARAGRAPH Indicates that HostExplorer tabs to the
next field using the Paragraph Mark or
Enter key.
Related Topics
Property: IHEParser::OnPasteFieldModeTabCharacter
HOSTEX_PASTE_MODE Data Type
Related Topics
Property: IHEProfileDisplay::DisplayInOIA
The HOSTEX_PASTE_MODE data type specifies how HostExplorer pastes the contents of the
Clipboard to the current cursor location. By default, this data type is set to
HOSTEX_PASTE_MODE_PASTE_BLOCK.
It has the following values:
HOSTEX_PASTE_MODE_PASTE_BLOCK Indicates that HostExplorer
stops pasting text when it
reaches a protected field on the
screen.
HOSTEX_PASTE_MODE_PASTE_OVERLAY Indicates that HostExplorer
ignores pasted characters that
overlay protected fields.
HOSTEX_PASTE_MODE_PASTE_STREAM Indicates that HostExplorer
pastes text one character at a
time and stops when it reaches
a protected field.
HOSTEX_PASTE_MODE_PASTE_ Indicates that HostExplorer
STREAMWORDWRAP pastes text using wordwrap. In
this case, HostExplorer pastes
text, stops at a protected field,
and continues pasting at the
next available unprotected field.
HOSTEX_PASTE_MODE_PASTE_FIELD Indicates that HostExplorer
pastes text in a stream-like
fashion, and moves to the next
field when a
HOSTEX_NEXT_FIELD_KEY
character is encountered.
Related Topics
Property: IHEParser::PasteMode
HOSTEX_NEXT_FIELD_KEY Data Type
Related Topics
Property: IHEProfileHostPrinting::VTPrintFileMode
Related Topics
Property: IHEProfileHostPrinting::VTPrintTarget
Property: IHEProfileHostPrinting::VTPrintFile
Property: IHEProfileHostPrinting::VTUseSpecificPrinter
Related Topics
Property: IHEProfileSessionWindow::ResizeBehavior
The HOSTEX_SAVE_OPTIONS data type specifies the components of the Profile object that you
can save. It has the following values:
HOSTEX_SAVE_ALL Specifies that HostExplorer saves the values of
all components in the Profile object.
HOSTEX_SAVE_FONTS Specifies that HostExplorer saves any changes
made to the session font.
HOSTEX_SAVE_EVENT_SCHEME Specifies that HostExplorer saves the event
scheme for the current session.
Related Topics
Method: IHEProfile::Save
Related Topics
Property: IHETransport::SecurityOption
Property: IHEProfileSecurity::SecurityOption
The HOSTEX_SELECTION_MODE data type specifies how you select text. By default, this
data type is set to HOSTEX_SELECTION_MODE_BLOCK.
It has the following values:
HOSTEX_SELECTION_MODE_BLOCK Indicates that you can select text as a
block.
HOSTEX_SELECTION_MODE_STREAM Indicates that you can select text as a
stream.
Related Topics
Property: IHEParser::SelectionMode
The HOSTEX_STATUS_LINE_MODE data type indicates where the status line appears.
It has the following values:
HOSTEX_STATUS_LINE_MODE_ NOSTATUSLINE Indicates that no
status line is
displayed.
HOSTEX_STATUS_LINE_MODE_ TERMINALSTATUSLINE Indicates that the
status line appears
at the bottom of the
terminal screen.
HOSTEX_STATUS_LINE_MODE_ WINDOWSTATUSBAR Indicates that the
status line appears
at the bottom of the
window.
HOSTEX_STATUS_LINE_MODE Indicates that the
_5250TERMIMALSTATUSBAR 5250 terminal style
status line appears.
Related Topics
Property: IHEParser::StatusLineMode
Property: IHEProfileDisplay::StatusLineMode
Related Topics
Property: IHEProfileSessionWindow::SwitchScreenType
Related Topics
Property: IHETransport::TelnetEcho
Property: IHEProfileConnection::TelnetEcho
Related Topics
Property: IHEParser::TerminalID
The HOSTEX_TERM_MODEL data type specifies the type of terminal that you are using to
connect to the host. By default, this data type is set to HOSTEX_TERM_MODEL_2.
It has the following values:
HOSTEX_TERM_MODEL_2 Indicates that the
terminal consists of 24
lines by 80 columns.
HOSTEX_TERM_MODEL_3 Indicates that the
terminal consists of 32
lines by 80 columns.
HOSTEX_TERM_MODEL_4 Indicates that the
terminal consists of 27
lines by 80 columns.
HOSTEX_TERM_MODEL_5 Indicates that the
terminal consists of 27
lines by 132 columns.
HOSTEX_TERM_MODEL_VT100 Indicates that you are
using a VT100 terminal
to connect to the host.
HOSTEX_TERM_MODEL_VT101 Indicates that you are
using a VT101 terminal
to connect to the host.
HOSTEX_TERM_MODEL_VT102 Indicates that you are
using a VT102 terminal
to connect to the host.
HOSTEX_TERM_MODEL_VT220 Indicates that you are
using a VT220 terminal
to connect to the host.
HOSTEX_TERM_MODEL_VT320 Indicates that you are
using a VT320 terminal
to connect to the host.
HOSTEX_TERM_MODEL_VT420 Indicates that you are
using a VT420 terminal
to connect to the host.
HOSTEX_TERM_MODEL_VT52 Indicates that you are
using a VT52 terminal
to connect to the host.
HOSTEX_TERM_MODEL_ANSI Indicates that you are
using an ANSI/BBS
terminal to connect to
the host.
HOSTEX_TERM_MODEL_SCOANSI Indicates that you are
using a SCO-ANSI
terminal to connect to
the host.
HOSTEX_TERM_MODEL_TERM_ IBM3151 Indicates that you are
using an IBM 3151
terminal to connect to
the host.
HOSTEX_TERM_MODEL_WYSE50 Indicates that you are
using a WYSE50
terminal to connect to
the host.
HOSTEX_TERM_MODEL_WYSE60 Indicates that you are
using a WYSE60
terminal to connect to
the host.
Related Topics
Property: IHETransport::TerminalModel
The HOSTEX_TOGGLE_RECEIVE data type specifies how HostExplorer toggles the state of
the receipt of data from the Transport objects.
It has the following values:
HOSTEX_TOGGLE_RECEIVE_RETURNS_ STATE Indicates that
HostExplorer returns
only the actual state
(whether or not the
receipt is already
blocked).
HOSTEX_TOGGLE_RECEIVE_STATE Indicates that
HostExplorer toggles
the current state. If the
state is TRUE, it is
toggled to FALSE. If
the state is FALSE, it is
toggled to TRUE.
HOSTEX_TOGGLE_RECEIVE_OFF Indicates that if the
state is ON,
HostExplorer toggles it
to OFF.
HOSTEX_TOGGLE_RECEIVE_ON Indicates that if the
state is OFF,
HostExplorer toggles it
to ON.
Related Topics
Method: IHETransport::ToggleBlockReceive
Related Topics
Property: IHEParser::TPrintOutput
Property: IHEProfilePCPrint::TprintMode
Related Topics
Property: IHEParser::TransferMode
The HOSTEX_TRANSFER_TARGET data type specifies where the file transfer occurs.
It has the following values:
HOSTEX_TRANSFER_PC_FILESYSTEM Indicates that the file transfer occurs on
the file system.
HOSTEX_TRANSFER_PC_CLIPBOARD Indicates that the file transfer occurs on
the Clipboard.
The HOSTEX_TRANSFER_TYPE data type specifies the name of the host file transfer program
to use when uploading and/or downloading files.
It has the following values:
HOSTEX_TRANSFER_TYPE_INDFILE Indicates that the name of the file-
transfer program for TN3270
terminals is IND$File. You can use
IND$File to send and receive TN3270
files.
HOSTEX_TRANSFER_TYPE_ZMODEM Indicates that the name of the file-
transfer program is Zmodem. This VT
protocol provides end-to-end data
security between program
applications while significantly
eliminating file-transfer errors.
HOSTEX_TRANSFER_TYPE_YMODEM Indicates that the name of the file-
transfer program is Ymodem. This VT
protocol supports batch file transfers
and can send the file name and file
size before the actual data.
HOSTEX_TRANSFER_TYPE_XMODEM Indicates that the name of the file-
transfer program is Xmodem. This VT
protocol is one of the original
protocols written for asynchronous
communications.
HOSTEX_TRANSFER_TYPE_XMODEM1K Indicates that the name of the file-
transfer program is Xmodem-1K. This
VT protocol is part of Xmodem.
HOSTEX_TRANSFER_TYPE_KERMIT Indicates that the name of the file-
transfer program is Kermit. This VT
protocol sends batch files with the
name and time stamp of each file in
small packet sizes. These packets
contain fields that mark the beginning,
length, type, and sequence number of
the packet.
The OLE_COLOR data type is used for properties that return colors. When a property is
declared as OLE_COLOR, the Properties window displays a color palette, which you can use to
select the color for the property rather than using the numeric equivalent.
This data type consists of a long value that is converted from a hexadecimal value. The
hexadecimal value returns the corresponding values for BGR (Blue, Green, Red). The first two
hexadecimal numbers refer to Blue; the middle two numbers refer to Green, and the last two
numbers refer to Red. For example:
• Blue—hexadecimal FF0000; long 16711680
• Green—hexadecimal FF00; long 65280
• Red—hexadecimal FF; long 255
Note: A hexadecimal value must be converted to a long value so that you can use it
in a property.
RelatedTopics
Property: IHEProfileSessionWindow::WorkspaceBackgroundColor
Property: IHEProfileSessionWindow::WorkspaceForegroundColor
The PC_OVERWRITE_BEHAVIOUR data type specifies how files are written to the PC.
It has the following values:
OVERWRITE_BEHAVIOUR_OVERWRITE Indicates that HostExplorer overwrites
the existing file with the file you are
sending.
OVERWRITE_BEHAVIOUR_RENAME Indicates that HostExplorer renames
the file you are sending and leaves the
existing file unchanged.
OVERWRITE_BEHAVIOUR_SKIP Indicates that HostExplorer transfers
all of the files except for those that
already exist.
About Legacy APIs
HostExplorer provides the following existing or “legacy” APIs:
• EHLLAPI (Extended High Level Language Application Programming Interface) and WinHLLAPI (Windows HLLAPI)—Allow other Windows
programs (for example, Attachmate® Extra! for Windows) to communicate and control HostExplorer terminal emulators.
• DDE (Dynamic Data Exchange)—A tool that allows programs (for example, Microsoft Excel, Word, and Visual Basic) to communicate with the
HostExplorer 3270 emulator.
While these APIs are less efficient and use larger and more rigid objects than COM and OHIO, you can still use them to write applications and thus
avoid rewriting your own code. HostExplorer’s support of these earlier APIs helps maximize an organization’s investment in its development.
OLE Automation
OLE Automation is a facility provided by Windows that lets you exchange data between applications. You can use OLE Automation to automate these
tasks.
You can also use OLE Automation to access and control HostExplorer. You can write OLE Automation clients using a variety of tools, including
Hummingbird Basic, Visual Basic, C++, and other languages.
The name of the Automation object is "HostExplorer."
The following example uses Visual Basic:
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Now, use the language extensions as you would in the built-in macro editor:
Related Topics
OLE Objects
Methods and Properties of the Application Object
Methods and Properties of the Field Object
Methods and Properties of the Host Object
Methods and Properties of the Hosts Object
Methods and Properties of the Cfg3270, Cfg5250 and CfgVT Objects
OLE Automation Reference
OLE Automation is a facility provided by Windows that lets you exchange data between applications. You can use OLE Automation to automate these
tasks.
You can access and control HostExplorer through OLE Automation. You can use OLE Automation clients to write and use a variety of tools including
Hummingbird Basic, Visual Basic, C++ and more. HostExplorer provides a number of OLE Automation Objects that you can use to develop scripts to
control HostExplorer and its operations. You can view OLE Automation Objects as methods and properties.
Related Topics
OLE Objects
OLE Objects
HostExplorer provides methods and properties for the following OLE objects:
• Application
• Hosts
• Host
• Area
• Field
• Cfg3270, Cfg5250, and CfgVT
A method is a construct that, when executed, performs an action and possibly returns a value. For example, you can use the Keys method to simulate
pressing keys in HostExplorer. This method returns the value of the return code, indicating whether you pressed the keys successfully. A method can
optionally take parameters.
A property is an interface to a variable in HostExplorer. Unlike a method, it does not perform an action or take any parameters. You can use a property
to retrieve or set the value of its associated variable in HostExplorer. For example, you can use the AllowUpdates host property to get or set the value
of the Screen Updates flag, which determines whether the program updates the screen. Properties that you can retrieve, but not alter, are called read-
only properties.
The following diagram illustrates the relationship between the OLE objects.
Related Topics
OLE Automation
Methods and Properties of the Application Object
The methods and properties of the Application object let you manipulate various aspects of a HostExplorer session.
The following Application object methods and properties are available:
CurrentHost Property
ExitAll Method
GetCurrentDir Method
GetFilePath Method
GetProfileString Method
Hosts Collection Object
HostFromProfile Method
HostFromShortName Method
NewSession Method
StartSession Method
Word Method
WriteProfileString Method
CurrentHost Property
The CurrentHost property is a pointer to the current host object, which is the session with the last focus. If there is only one session, this object
represents a pointer to that session.
Note: Because this object represents the session that last had the focus, the value of CurrentHost may change throughout your program
when you start new sessions. To prevent this, use the Host object by assigning a static reference to the current session. For example:
Dim Host as Object
Set Host = HE.CurrentHost
… Now use Host.* object …
Syntax CurrentHost
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Dim Host as Object
Host.PrintScreen
End Sub
Related Topics
Hosts Collection Object
HostFromProfile Method
HostFromShortName Method
ExitAll Method
You can use this method to immediately terminate and close all active sessions. Make this method the last call to HostExplorer because it
automatically unloads the emulator.
Syntax ExitAll
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
…
HE.ExitAll
End Sub
Related Topics
Close Method
GetCurrentDir Method
Path$ = HE.GetCurrentDir
Print Path$
End Sub
GetFilePath Method
The GetFilePath method displays a dialog box that prompts you for a file path. The returned string is a complete path and file name. If you click the
Cancel button, the system returns a null string.
Syntax szPath$ = GetFilePath ( szDefName$, szDefExt$, szDefDir$, szTitle$,
iOption% )
szDefName$—Used to set the initial file name. If you omit this by specifying an empty string (" "),
*.szDefExt$ is used.
szDefExt$—Used to initially show files whose extension matches this string value. You can specify
multiple extensions by using a comma (,) as the separator. If you omit this by specifying an empty
string (" "), * is used.
szDefDir$—Used to set the initial directory. If you omit this by specifying an empty string (" "), the
system uses the current directory.
szTitle$—Used to set the title of the dialog box. If you omit this by specifying an empty string (" "),
"Open" is used.
iOption%—The numeric value which determines the file selection options. If you omit this, the
system uses a zero.
The available options are:
0—Only allow the user to select a file that exists
1—Confirm creation when the user selects a file that does not exist
2—Allow the user to select any file whether it exists or not
3—Confirm overwrite when the user selects a file that exists
szPath$—The path string returned from the dialog box if the user pressed OK.
Selecting a different directory changes the current directory of the application.
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
End Sub
GetProfileString Method
You can use the GetProfileString method to retrieve a value from any .ini file.
The szSection$ parameter is the section name. This parameter must always be present. The szKey$ parameter is the key name. You can pass an
empty string as this parameter to read all the keys in the section. The system separates all keys by newline characters. The szINIFileName$
parameter is the file name. If you omit a path, the system looks for the file in the Windows directory.
Syntax szValue$ = GetProfileString( szSection$, szKey$, szINIFileName$
)
szSection$—The section of the file (the name in square brackets).
szKey$—The key to read.
szINIFileName$—The name of the .ini file to read.
szValue$—The string value read from the .ini file.
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
WriteProfileString Method
HostFromProfile Method
The HostFromProfile method is a pointer to the host object which was started from the specified session profile.
Syntax Set Host = HostFromProfile( strProfile$ )
strProfile$—The name of the session profile.
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Dim Host as Object
End Sub
Related Topics
Hosts Collection Object
CurrentHost Property
HostFromShortName Method
HostFromShortName Method
The HostFromShortName method is a pointer to the host object which contains the specified session short name.
Syntax Set Host = HostFromShortName( strShortName$ )
strShortName$—The name of the session short name.
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Dim Host as Object
End Sub
Related Topics
Hosts Collection Object
CurrentHost Property
HostFromProfile Method
The Hosts Collection object accesses available sessions by their unique session ID.
Note: Hosts(n) may or may not be set to “Nothing”, even if the number of hosts is greater than n, since each successive session’s unique ID
is incremented by 1 and has nothing to do with whether or not sessions close.
Refer to the Next property for an example of the suggested way to enumerate all of the current host objects.
Related Topics
CurrentHost Object
HostFromProfile Method
HostFromShortName Method
NewSession Method
You can use the NewSession method to create a new session control block within HostExplorer. Use this method if you want to create a new session
from scratch without using a previously saved profile. The NewSession method returns a value representing the unique session ID of the new session.
The first available session has a session ID of 0.
Note: HostExplorer continues to support this method. However, the Open method is more current. Not only can you use the Open method to
create a new session, but you can also use it to specify a session profile or terminal type. If there are any programs or macros that used the
NewSession method in version 6.x, you must review (and possibly modify) them for versions 7.x and 8.x.
The default terminal type is 3270. To change the default, add the following line to the HEOleAut.Settings section in the global hostex.ini file,
located in the HostExplorer directory where the user files are stored on your machine. For the appropriate directory path for your platform, refer to
the list of the default locations for the user files.
[HEOleAut.Settings]
New Session Terminal Type = x
where x is one of the following values:
1—TERMINAL_3270
2—TERMINAL_TELNET
4—TERMINAL_5250
Syntax UniqueSessID% = NewSession
Group Application Object
Mode 3270, 5250, VT
Example '$Include:"-E\hebasic.ebh"
Sub Main
Dim Host as Object
Dim HE as Object
Dim Cfg as Object
Set HE = CreateObject( "HostExplorer" )
UniqueSessID% = HE.NewSession
Set Host = HE.Hosts(UniqueSessID%)
Set Cfg = Host.Cfg
Host.Model =TELNET_VT220 ' Set terminal model next
Host.ConnectBy = IO_TELNET ' Set transport next
Cfg.Host = "myhost.mydomain"
Cfg.ConnectTimeout = 30
Cfg.TCPPort = 23
Host.Connect
End Sub
Related Topics
Open Method
StartSession Method
StartSession Method
You can use the StartSession method to start a new session from a profile saved on disk. This method takes one parameter that is the name of the
profile. You can specify the ProfileName in one of two ways:
• Specify a complete directory path to the MyProfile.hep file in the Profile\3270 directory where the user files are stored on your machine.
For the appropriate directory path for your platform, refer to the list of the default locations for the user files.
• Specify the older format if the profile is in a first-level folder "MyProfile.MyFolder".
Note: HostExplorer continues to support this method. However, the Open method is more current. Not only can you use the Open method to
create a new session, but you can also use it to specify a session profile or terminal type. If there are any programs or macros that used the
StartSession method in version 6.x, you must review (and possibly modify) them for versions 7.x and 8.x.
The value UniqueSessID% returned is the session ID for the host session created. You can use this session ID to access the Host object directly.
Syntax UniqueSessID% = StartSession( szProfileName$ )
szProfileName$—The name of the profile to load and
connect.
UniqueSessID%—The ID of the session started.
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Dim Host as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
NewSession Method
Word Method
You can use the Word method to parse out the nth word of a string. The first parameter is the string that you want to parse. The second parameter
contains a string of valid delimiters to parse the words. The third parameter is the index of the word to retrieve. Unlike other methods, the first word of
a string has an index of 1.
Syntax szWord$ = Word( szString$, szParse$, index% )
szString$—The string to parse.
szParse$—The string of delimiters to parse szString$.
index%—The index of the word to parse out.
szWord$—The word parsed by the method.
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
End Sub
WriteProfileString Method
You can use the WriteProfileString method to write an INI key value to a file. The szSection$ parameter is the section name and is mandatory. The
szKey$ parameter is the key name. If you pass an empty string as the szKey$ and szValue$ parameters, the entire section is deleted. The
szValue$ parameter is the value for the key. If you pass an empty string as the szValue$, then the key is deleted from the section. The
szINIFileName$ parameter is the file name. If you omit a path, the system looks for the file in the Windows directory.
Syntax WriteProfileString szSection$, szKey$, szValue$,
szINIFileName$
szSection$—The section of the file (the name is in square brackets).
szKey$—The key to write.
szINIFileName$—The name of the .ini file to write.
Group Application Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
GetProfileString Method
CloseAll Method
You can use this method to immediately terminate and close all active sessions. Make this method the last call to HostExplorer because it
automatically unloads the emulator.
Syntax Hosts.CloseAll
Group Hosts Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
…
HE.Hosts.CloseAll
End Sub
Count Property
…
count% = HE.Hosts.Count
End Sub
Item Property
This property returns the pointer to the session (n) where n is a unique session ID.
Syntax Set Host = Hosts.Item (ID%)
ID%—The ID of the session.
Group Hosts Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Dim Host as Object
Set HE = CreateObject( "HostExplorer" )
…
Set Host = HE.Hosts(0)
End Sub
Next Property
This property returns the next session after the specified session. If you specify "Null", it returns the first session.
Syntax Set Host = Hosts.Next (HostX)
HostX—The specified host.
Group Hosts Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Dim Host as Object
Set HE = CreateObject( "HostExplorer" )
Set Host = Nothing ' Prepares ‘Next’ method to get the first host
for i = 1 to HE.Hosts.Count
Set Host = HE.Hosts.Next(Host)
MsgBox "The current short name is: " + Host.ShortName
next i
End Sub
Open Method
You can use the Open method to start a new session from a profile saved on disk or to create a new session from scratch without using a previously
saved profile. This method takes one parameter that is the name of the profile. You can specify the ProfileName in one of two ways:
• Specify a complete directory path to the MyProfile.hep file in the Profile\3270 directory where the user files are stored on your machine.
For the appropriate directory path for your platform, refer to the list of the default locations for the user files.
• Specify the older format if the profile is in a first level folder "MyProfile.MyFolder".
Syntax Set Host = Hosts.Open( szProfileName$ )
Set Host = Hosts.Open (TERMINAL_TELNET)
szProfileName$—The name of the profile to load and connect.
Group Hosts Object
Mode 3270, 5250, VT
Example The following example involves opening an existing profile:
Sub Main
Dim HE as Object
Dim Host as Object
Set HE = CreateObject( "HostExplorer" )
End Sub
The following example involves opening a new profile:
'$Include: "-E\hebasic.ebh"
Sub Main
Dim HE as Object
Dim MyHost as Object
MyHost.Cfg.ConnectTimeout = 30
MyHost.Connect
End Sub
Related Topics
NewSession Method
Methods and Properties of the Host Object
The Host object methods and properties let you configure and manipulate all aspects of a screen. You can access a host screen in two ways. You can
use the CurrentHost object, which always refers to the screen which has or last had the focus, or the Hosts(n) object where n is a value from 1 to
Hosts.Count (the total number of available sessions). The latter is the method used to access the n'th session available. If you are writing scripts that
simply access one session, use of the CurrentHost object is the recommended method. You can access host methods directly using the With
statement, or by creating an object for easy reference.
The following Host object methods and properties are available:
Activate Method OIAUpdated Property
Related Topics
Hide Method
Show Method
AllowClose Property
You can use this property to allow or prevent the user from closing the current session. To allow the user to close the session, set the AllowClose
property to TRUE. To prevent the user from closing the session, set the property to FALSE.
Syntax AllowClose = TRUE/FALSE
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bAllowClose = HE.CurrentHost.AllowClose
HE.CurrentHost.AllowClose = FALSE
End Sub
Related Topics
AllowUpdates Property
QueryCloseRequest Property
AllowUpdates Property
You can use this property to return or set the screen updates flag. When disabled, the system does not perform screen updates. Use this flag to
optimize performance or prevent a user from seeing updates while you are performing transactions.
Syntax AllowUpdates = TRUE/FALSE
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bUpdates = HE.CurrentHost.AllowUpdates
HE.CurrentHost.AllowUpdates = FALSE
End Sub
Related Topics
AllowClose Property
PSUpdated Property
BFPress Method
You can use this method to send the modified data to the host system. The parameter allows you to specify the actual AID (Attention Identifier) sent to
the host system in the 3270 datastream. This method is used to support RPQ 7J0048.
Syntax BFPress iAIDValue%
iAIDValue%—The AID key value for the host datastream.
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
BFStatus Method
BFStatus Property
This read-only property is used to return the status of the extended function keys used to support RPQ 7J0048. The string returned contains the status
for each extended function key. There are 48 function keys. The status character for each key can be: '0' - Key is Off, '1' - Key is On, '2' - Key is
flashing. Therefore, to check the status of BF Key 10, you would check the tenth character in the string.
Syntax szStatus$ = BFStatus
szStatus$—The status string for all BF keys.
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
status$ = HE.CurrentHost.BFStatus
End Sub
Related Topics
BFPress Method
Bytes Property
This read-only property returns the number of bytes in the presentation space of the host object. It is equal to the number of columns multiplied by the
number of rows.
Syntax iBytes% = Bytes
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iBytes% = HE.CurrentHost.Bytes
MsgBox "The number of Bytes in the presentation
space is & iBytes%, , "Information"
End Sub
Related Topics
Columns Property
Rows Property
Capture Property
You can use this read/write property to get or set the capture mode for the host object. You can retrieve the current setting for the capture mode or you
can set a new value.
You can enable constant capturing of TN3270 and TN5250 panels as they are received from the host. In Telnet, you can capture data in Text or Raw
Mode. The capture file is set using the SaveFile Cfgxxxx property.
bMode = HE.CurrentHost.Capture
HE.CurrentHost.Capture = TRUE
End Sub
Related Topics
SaveScreen Method
CaptureOIA Property
You can use this read/write property to get or set the capture operator information area (OIA) flag for the host object. When the value is TRUE, the
system captures the OIA in every screen. When the value is FALSE, the system does not capture the OIA.
Syntax CaptureOIA = TRUE/FALSE
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bMode = HE.CurrentHost.CaptureOIA
HE.CurrentHost.CaptureOIA = TRUE
HE.CurrentHost.SaveScreen "c:\screen.txt"
End Sub
Related Topics
SaveScreen Method
Close Method
You can use this method to close (terminate) the host session and object. This method immediately terminates any host connection and closes the
session window.
Syntax Close
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Columns Property
This read-only property returns the number of columns currently defined in the Host object.
Syntax iCols% = Columns
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iColumns = HE.CurrentHost.Columns
MsgBox "The number of Columns in presentation space is " & iColumns, ,
"Information"
End Sub
Related Topics
Bytes Method
Rows Method
Connect Method
You can use this method to connect a session to a host system. You can only make this call if your current session does not already have a host
connection. This method maps directly to the File, Connect menu.
You can set the host system name and other connection parameters through the Cfg3270 and CfgVT objects.
Syntax Connect
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Cfg3270.Host = "MyHost"
HE.CurrentHost.Cfg3270.TCPPort = 23
HE.CurrentHost.Connect
End Sub
Related Topics
Cfg3270 Objects List
CfgVT Objects List
ConnectErrorStatus Property
ConnectRC Property
Disconnect Property
WaitConnected Method
ConnectBy Property
You can use this property to set or retrieve the connection type. The following definitions exist in the hebasic.ebh header:
Const IO_TELNET = 0 ' All terminal types
Const IO_MODEM =1 ' VT Only
Const IO_MSSNA = 2 ' 3270 Only
Const IO_NWSAA = 3 ' 3270 Only
Const IO_DEMOLINK = 4 ' All terminal types
Syntax iMode% = ConnectBy
Group Host Object
Mode 3270, 5250, VT
Example '$Include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Dim Host as Object
ConnectErrorStatus Property
This read-only property returns the error status for the last connect request. Valid return codes are:
• 0—No error.
• 1—Busy signal.
• 2—No answer.
• 3—No dial tone.
• 4—Unspecified problem after dialing.
Syntax iRc% = ConnectErrorStatus
Group Host Object
Mode VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.StartSession "Default.VT"
If HE.CurrentHost.ConnectRC = 0 Then
MsgBox "Error occurred during connect. Rc: " + Str$
(HE.CurrentHost.ConnectErrorStatus)
End If
End Sub
Related Topics
Connect Property
ConnectRC Property
Disconnect Property
WaitConnected Method
ConnectRC Property
This read-only property returns the connection status for the last connect request. Valid return codes are:
• 0—Not connected.
• 1—Connecting.
• 2—Connected.
Syntax iRc% = ConnectRC
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.StartSession "Default.3270"
If HE.CurrentHost.ConnectRC = 2 Then
MsgBox "Error occurred during connect. Rc: " + Str$
(HE.CurrentHost.ConnectRC)
End If
End Sub
Related Topics
Connect Property
ConnectErrorStatus Property
Disconnect Property
WaitConnected Method
Cursor Property
You can use this property to get or set the cursor location. The location is expressed with an absolute number from 1 to the screen size. If the value is
outside this range, the system ignores the call. In VT mode, the Cursor property is read-only.
Syntax Cursor = iPos%
Group Host Object
Mode 3270, 5250, VT (Read-Only)
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iPos% = HE.CurrentHost.Cursor
HE.CurrentHost.Cursor = 1760
MsgBox "The position of the cursor is at " & iPos%,
,"Information"
End Sub
Related Topics
CursorRC Property
CursorRC Property
You can use this property to set the cursor location using row and column values. If a value is outside the valid range, the system ignores the call. The
first position on the screen is row 1 column 1.
Syntax CursorRC iRow%, iCol%
iRow%—The row position.
iCol%—The column position.
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Cursor Property
Device3279 Property
This read/write property lets you set the 3270 device as FALSE (3278) or TRUE (3279). For this value to take effect, you must first disconnect and
reconnect the session.
Syntax b3279Device = Device3279
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
b3279Device = HE.CurrentHost.Device3279
MsgBox "The 3270 Device is set to " & b3279Device, ,
"Information"
End Sub
Related Topics
EAB Property
Model Property
Disconnect Method
You can use this method to disconnect a session from a host system. You can call this method only if your session is currently connected. This
method maps directly to the Disconnect item on the File menu.
Syntax Disconnect
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Disconnect
End Sub
Related Topics
Connect Method
EAB Property
You can use this read/write property to get or set Extended Attribute support. If the value is TRUE, the system enables Extended Attributes. Changing
this value takes effect only after you disconnect and reconnect the session.
Syntax bVal = EAB
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bEAB = HE.CurrentHost.EAB
MsgBox "The Extended Attribute support has a value of " +
bEAB
End Sub
Related Topics
Device3279 Property
FieldID Method
This method returns the field index for a given position on the screen. You can use this method to access the field object directly. The first position on
the screen is 1, whereas the first Field ID index is 0.
Syntax iFieldID% = FieldID( iPos% )
iPos%—The position to query.
iFieldID%—The field ID returned for the queried position.
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Methods and Properties of the Field Object
The Fields Collection object lets you manipulate a field through a series of methods and properties. This interface provides a device-independent way
of dealing with data on the host screen. The first field is Field 0.
Syntax Dim Fld as Object
Set Fld = CurrentHost.Fields( iFieldNum% )
iFieldNum%—The field index to return.
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim Fld as Object
Dim HE as Object
MsgBox "Field 2 has length: " + Str$(Fld.Length) + ", Position: " + Str$(Fld.Pos) + ", Value: " + _
Fld.Text
End Sub
Related Topics
Methods and Properties of the Field Object
FontLarger Method
You can use this method to change the session font to the next largest font.
Syntax FontLarger
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.FontLarger
End Sub
Related Topics
FontSmaller Method
SetFont Method
FontSmaller Method
You can use this method to change the session font to the next smallest font.
Syntax FontSmaller
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.FontSmaller
End Sub
Related Topics
FontLarger Method
SetFont Method
GetIOBuffer Method
This method is used when simulating a Host connection through the OLE interface. When you create a connection using the Demo Link, you can
retrieve the host data stream, which would normally be sent to the host. This method retrieves the host data stream field-by-field. The first field is field
1. If you pass a iFieldNum% of -1, the AID value is returned as an integer string. For example, "Enter", which is AID 0x7D, would return the string
"125".
Syntax strVal$ = GetIOBuffer( iFieldNum% )
iFieldNum%—The field to query.
strVal$—The string returned from the I/O buffer.
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
If iRc% = 0 Then
cAID$ = HE.CurrentHost.GetIOBuffer( -1 )
strField1$ = HE.CurrentHost.GetIOBuffer( 1 )
End If
End Sub
Related Topics
LoadSlideShowFile Property
WaitForIO Method
Hide Method
You can use this method to hide the host object. This will hide the screen whether it is minimized, normal, or maximized. When the screen is hidden, it
no longer appears in the taskbar.
Syntax Hide
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Activate Method
Show Method
HideToolbar Method
HE.CurrentHost.HideToolbar
End Sub
Related Topics
ShowToolbar Method
HighlightText Method
You can use this method to return text that you have highlighted on the screen by using your mouse. The parameter row% selects the row of
highlighted text to return. Row 1 is the first highlighted row, row 2 is the second, and so on. Passing a row number of 0 will result in the entire
highlighted block being returned with newline characters "\n" as line separators. If you specify an invalid row number, you will get a null string.
Syntax szText$ = HighlightText( row% )
row%—The highlighted row to return.
szText$—The string returned.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szText$ = HE.CurrentHost.HighlightText( 0 )
MsgBox "The content of the highlighted area is " & szText$, ,"Hummingbird Basic
Output"
End Sub
The methods and properties of the Host object let you configure and manipulate all aspects of a screen. You can access a host screen in two ways.:
• use the CurrentHost object (applies to the currently or previously active screen). This method is useful if you are writing scripts that access only
one session.
• use the Hosts(n) object, where n is a value from 1 to Hosts.Count (the total number of available sessions). You can use this method to access
the nth session available.
Note: You can access host methods directly using the “With” statement, or by creating an object for easy reference.
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.InsertMode = FALSE
End Sub
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Host.InsertMode = FALSE
End Sub
Index Property
You can use this property to return the unique ID for the current session. This is the session control block ID used internally. This corresponds to the
value used in the Hosts(n) property. The first session has an index value of 0.
Syntax UniqueSessID
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
UniqueSessID% = HE.CurrentHost.Index
MsgBox "The ID of the current session is " & UniqueSessID%, ,"Information"
End Sub
Related Topics
ShortName Property
InsertMode Property
This property is used to get or set the insert mode for the host session.
Syntax InsertMode = TRUE/FALSE
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bMode = HE.CurrentHost.InsertMode
HE.CurrentHost.InsertMode = TRUE
End Sub
IsConnected Property
This read-only property returns the value TRUE if the session is connected to a host system. It returns the value FALSE if the session is not in use.
Syntax bVal = IsConnected
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
IsXfer Property
This read-only property returns a TRUE value if a file transfer is currently taking place.
Syntax bVal = IsXfer
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
ReceiveFile Method
SendFile Method
WaitXfer Method
XferCount Property
XferRC Property
Keyboard Property
You can use this property to get or set the locked keyboard mode. When set to TRUE, the host keyboard locks, preventing user input. You can unlock
the host keyboard by setting this value to FALSE.
Syntax Keyboard = TRUE/FALSE
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iKeybLocked = HE.CurrentHost.Keyboard
HE.CurrentHost.Keyboard = FALSE
End Sub
Keys Method
You can use this method to press keys while in HostExplorer. You can insert special sequences in 3270, 5250, or VT mode to press system keys such
as Tab, Reset, and so on. Valid return codes are:
• 0—String processed successfully
• 5—Error processing string. Keyboard locked. If the keystring$ contains an AID key, the function will always return a value of 5.
Note: The Keys method is affected by the Type Ahead setting. If you send a 3270/5250 AID key and Type Ahead is enabled, the function
will not return until the keyboard is unlocked by the host system. If Type Ahead is disabled, the function will always return immediately.
Related Topics
3270/5250 Special Sequences
VT Special Sequences
PutText Property
RunCmd Method
LoadQuickKeyFile Method
You can use this method to load a new set of Quick-Keys for this session. Quick-Keys are shared between sessions and loading a new set of Quick-
Keys from one session will affect other sessions. Valid return codes are:
• 0—Successfully loaded Quick-Keys.
• 1—Error loading Quick-Keys.
Syntax iRc% = LoadQuickKeyFile( szFileName$ )
szFileName$—The Quick-Key file to load. No path or extension
specified.
iRc%—The return code for the method.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iRc% = HE.CurrentHost.LoadQuickKeyFile(
"MYQUICKKEYS" )
End Sub
Related Topics
QuickKeyFile Property
RunQuickKey Method
SaveQuickKeyFile Method
LoadSlideShowFile Method
You can use this method to load a datastream image for the current session. The file must contain the datastream in the correct binary format. You
can create a datastream by using the Dlg-Save-Demo-File system command from the emulator. Valid return codes are:
• 0—Successfully loaded datastream image.
• 1—Error loading datastream image.
Syntax iRc% = LoadSlideShowFile( szFileName$ )
szFileName$—The path/file name to load.
iRc%—The return code for the method.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iRc% = HE.CurrentHost.LoadSlideShowFile(
"c:\test.dem" )
End Sub
Related Topics
GetIOBuffer Method
WaitForIO Method
Maximize Method
You can use this method to maximize the host session window.
Syntax Maximize
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Maximize Method
Restore Method
Minimize Method
You can use this method to minimize the host session window.
Syntax Minimize
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Minimize Method
Restore Method
Model Property
This read/write property returns the model type for the session or sets the model for the session. Changing this value will take effect only after you
disconnect and reconnect a session.
Syntax iModel% = Model
Group Host Object
Mode 3270, 5250, VT
For 3270, the possible values are: 2, 3, 4, or 5.
For 5250, the possible values are: 2 or 5.
For Telnet, the possible values are:
• TELNET_VT52
• TELNET_VT100
• TELNET_VT101
• TELNET_VT102
• TELNET_VT220
• TELNET_VT320
• TELNET_VT420
• TELNET_ANSI
• TELNET_SCOANSI
Example '$Include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iModel = HE.CurrentHost.Model
MsgBox "This session is of Model Type " + iModel, , "Information"
End Sub
Related Topics
Device3279 Property
EAB Property
MouseToCursor Property
You can use this R/O property to return the position of the mouse in screen coordinates. If the mouse is not in the screen area, the value returned is -
1. Otherwise, the value returned is between 1 and the screen size. The screen size is the number of rows multiplied by the number of columns.
Syntax iPos% = MouseToCursor
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iPos = HE.CurrentHost.MouseToCursor
End Sub
OIA Property
This property returns the operator information area (OIA) as a text string. This is a read-only property.
Syntax szOIA$ = OIA
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szOIA = HE.CurrentHost.OIA
MsgBox szOIA, , "Content of Operator Information Area
(OIA)"
End Sub
Related Topics
OIAUpdated Property
OIAUpdated Property
If the system returns a TRUE value (Updated), and the operator information area (OIA) was updated since the last call, the system will reset the
internal flag to FALSE (Not Updated) after the call. This is a read-only property.
Syntax bVal = OIAUpdated
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bUpdated = HE.CurrentHost.OIAUpdated
MsgBox "OIA Return Value is " & bUpdated, ,
"Information"
End Sub
Related Topics
OIA Property
Pause Method
You can use this method to pause the macro for the specified time in milliseconds.
Syntax PrintScreen
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
PrintScreen Method
You can use this method to print the current host session to the Windows printer specified in the profile for the session.
Syntax PrintScreen
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.PrintScreen
End Sub
ProtectedText Method
You can use this method to replace text in protected locations of the screen. Use this method carefully since you can overwrite field attributes.
Syntax ProtectedText iRow%, iCol%, szText$
iRow%—The row in which to write text.
iCol%—The column in which to write text.
szText$—The text to write.
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
PSReserved Property
You can use this property to get or set the session-reserved flag. When you reserve a session (TRUE), the system does not allow user input. When
the flag is FALSE (default), the user can type and use the menu. This makes the screen read-only.
Syntax PSReserved = TRUE/FALSE
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bReserved = HE.CurrentHost.PSReserved
HE.CurrentHost.PSReserved = FALSE
End Sub
Related Topics
AllowClose Property
AllowUpdates Property
PSUpdated Property
This read-only property returns a TRUE value if the presentation space was updated since the last call to this property. This property resets the
internal flag to FALSE (not updated) after each call.
Use this function to synchronize with host applications.
Syntax bVal = PSUpdated
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bUpdated = HE.CurrentHost.PSUpdated
MsgBox "Presentation Space Value is " & bUpdated, ,
"Information"
End Sub
Related Topics
AllowUpdates Property
PutText Method
You can use this method to write text to any unprotected location on the screen. In VT mode, the iRow and iCol parameters are ignored and can be
omitted. The first location on the screen is Row 1 Column 1. This method is identical to the Keys method but it allows you to specify the location to
write the text.
Syntax PutText szText$, iRow%, iCol%
szText$—The text to write.
iRow%—The row in which to write text.
iCol%—The column in which to write text.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Keys Method
RunCmd Method
QueryCloseRequest Property
You can use this property to see if the user attempted to close the session. The R/O property returns TRUE if the user attempted to close the session
(File/Close Session, File/Exit All, Alt-F4). This query is valid only if you disabled the session close using the AllowClose property.
Syntax bCloseRequested = QueryCloseRequest
Mode 3270, 5250, VT
Group Host Object
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.AllowClose = FALSE
bCloseRequest = HE.CurrentHost.QueryCloseRequest
End Sub
Related Topics
AllowClose Property
QuickKeyFile Property
You can use this read-only property to return the set of Quick-Keys that are currently loaded.
Syntax szQuickKey$ = QuickKeyFile
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szQuickKeys$ = HE.CurrentHost.QuickKeyFile
End Sub
Related Topics
LoadQuickKeyFile Property
RunQuickKey Method
SaveQuickKeyFile Method
ReceiveFile Method
You can use this method to initiate a file transfer (download) from the host system.
In 3270 mode, the first parameter specifies the local file to receive the data, the second parameter specifies the host filename to download, and the
last parameter specifies the host file transfer options.
In VT mode, the first parameter specifies the local file to receive the data and the second parameter specifies the file transfer protocol to use. When
using ZModem, this parameter should be a path since the filename will be provided by the ZModem protocol.
Syntax For 3270 mode, the syntax is:
ReceiveFile pcfilename$, hostfilename$, options$
For VT mode, the syntax is:
ReceiveFile pcfilename$, iXferProtocol%
pcfilename$—The PC file name to receive the host file.
hostfilename$—The name of the host file to download.
options$—Options for this file transfer.
iXferProtocol%—The file transfer protocol to use. Refer to hebasic.ebh for values.
Group Host Object
Mode 3270, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
IsXfer Property
SendFile Method
WaitXfer Method
XferCount Property
XferRC Property
Restore Method
You can use this method to restore the host object. This is a non-maximized mode.
Syntax Restore
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Maximize Method
Minimize Method
Row Method
You can use this method to retrieve the contents of the screen row-by-row. The numeric parameter specifies which row to retrieve. The value for the
parameter can range between 1 and the number of rows in the presentation space. Here, you can convert nulls to blanks.
Syntax szRowText$ = Row( iRow% )
iRow%—The row from which to retrieve text.
szRowText$—The string retrieved from the row.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
SecondRow$ = HE.CurrentHost.Row(2)
MsgBox "The content of the specified row in the presentation space is" & SecondRow, ,
"Output"
End Sub
Related Topics
Text Property
TextRC Property
Rows Property
This read-only property returns the number of rows currently defined in the host object.
Syntax Rows
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iRows = HE.CurrentHost.Rows
MsgBox "The number of rows in the presentation space is " & iRows, ,
"Information"
End Sub
Related Topics
Columns Method
RunCmd Method
You can use this method to run a system command within the session. You can assign system commands to keys and tool items. You can also use
system commands within a macro.
Note: The RunCmd method is affected by the Type Ahead setting. If you send a 3270/5250 AID key (for example, Enter, PFx, and so on)
and Type Ahead is enabled, the function will not return until the keyboard is unlocked by the host system. If Type Ahead is disabled, the
function will always return immediately.
Related Topics
Keys Method
RunQuickKey Method
You can use this method to run a Quick-Key within the session.
Syntax RunQuickKey szQuickKeyName$
szQuickKeyName$—The name of the Quick-Key to execute.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
LoadQuickKeyFile Property
QuickKeyFile Property
SaveQuickKeyFile Method
SaveQuickKeyFile Method
You can use this method to save Quick-Keys to disk. Do not supply a path or extension for the file name.
Syntax Save QuickKeyFile szQuickKeyFileName$
szQuickKeyFileName$—The file name of the Quick-
Keys to save.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.SaveQuickKeyFile "VMCMS"
End Sub
Related Topics
LoadQuickKeyFile Property
QuickKeyFile Property
RunQuickKey Method
SaveScreen Method
You can use this method to save the session screen to a file.
Syntax SaveScreen szFileName$
szFileName$—The name of the file to which the screen is
saved.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.SaveScreen "c:\screen.txt"
End Sub
Related Topics
CaptureOIA Property
SaveScrollback Method
You can use this method to save the session scrollback buffer to a file.
Syntax SaveScrollback szFileName$
szFileName$—The name of the file to which the scrollback buffer
is saved.
Group Host Object
Mode VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.SaveScrollback "c:\scrollback.txt"
End Sub
Related Topics
SaveScreen Method
Search Method
You can use this method to search the presentation space for the given search string. The bCaseSensitive flag specifies whether the search is
case-sensitive or not. iRow% and iCol% specify the starting position for the search. If iRow% is not passed, the cursor row is used instead. If iCol% is
not passed, the cursor column is used instead. Valid return codes are:
• n—The string was found in the presentation space at the location of n, where n is a value of 1 or greater. For example, a returned value of 1
indicates that the string is located at the top left-hand corner of the session screen.
• 0—String was not found in the presentation space.
If you use variables in the parameter list (as opposed to constants), the method will return the row and column where the text was found.
Syntax iRc% = Search( szSearchString$, bCaseSensitive,
iRow%,
iCol% )
szSearchString$—The string that HostExplorer attempts to find.
bCaseSensitive—The case-sensitive flag – TRUE/FALSE
iRow%—The row in which to start the search.
iCol%—The column in which to start the search.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iRow = 1
iCol = 1
SendFile Method
You can use this method to initiate a file transfer (upload) to the host system.
In 3270 mode, the first parameter specifies the local file to be uploaded, the second parameter specifies the host filename to receive the file, and the
last parameter specifies the host file transfer options.
In VT mode, the first parameter specifies the local file to receive the data and the second parameter specifies the file transfer protocol to use.
Syntax SendFile pcfilename$, hostfilename$, options$
SendFile pcfilename$, iXferProtocol%
pcfilename$—The name of the PC file to upload to the host.
hostfilename$—The name of the host file to receive the transferred file.
options$—The option for this file transfer.
iXferProtocol%—The file transfer protocol to use. Refer to hebasic.ebh for values.
Group Host Object
Mode 3270, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
IsXfer Property
ReceiveFile Method
WaitXfer Method
XferCount Property
XferRC Property
SetFont Method
You can use this method to change the session font to a specific name, width, and size. If you specify a width of 0, the system will select a visually
proportioned font. The font generated may not actually match the characteristics of those you requested.
Syntax SetFont fontname$, width%, height%
fontname$—The name of the font.
width%—The width of the font (in pixels).
height%—The height of the font (in pixels).
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
ShortName Property
You can use this property to get or set the session short name.
Note: The short name must be only one character.
The session short name is used primarily by HLLAPI applications. Changing the short name of a session will take effect immediately and does not
require the emulator or session to be restarted.
Syntax ShortName = "c"
strVal$ = ShortName
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Show Method
You can use this method to show the Host object. This displays the screen whether it is minimized, normal, or maximized.
Syntax Show
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
Hide Method
ShowToolbar Method
You can use this method to show the session toolbar. The toolbar cannot be shown if a mouse is not installed on the Windows system.
Syntax ShowToolbar
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.ShowToolbar
End Sub
Related Topics
HideToolbar Method
SilentConnect Property
You can use this property to get or set the Silent Connect option. This option is useful only when you construct a session manually by using the
NewSession method.
When this flag is enabled, there are no informational or error messages. These messages appear during the connection process.
Syntax SilentConnect
Group Host Object
Mode 3270, 5250, VT
Example '$Include:"-E\hebasic.ebh"
Sub Main
Dim Host as Object
Dim HE as Object
Dim Cfg as Object
Set HE = CreateObject( "HostExplorer" )
UniqueSessID% = HE.NewSession
Set Host = HE.Hosts(index%)
Set Cfg = Host.CfgVT ' Use CfgVT, Cfg3270, or Cfg5250
Host.TerminalMode =TERMINAL_TELNET ' Set terminal mode
first!
Host.Model =TELNET_VT220 ' Set terminal model next
Host.ConnectBy = IO_TELNET ' Set transport next
Host.SilentConnect = TRUE ' Silent connection
Cfg.Host = "myhost.mydomain"
Cfg.ConnectTimeout = 30
Cfg.TCPPort = 23
Host.Connect
End Sub
SystemColor Method
You can use the SystemColor Host method to change the color composition for one of the 16 base colors used by HostExplorer. This performs the
same function as accessing the Color Palette category in the Session Profile dialog box. The values for the iRed, iGreen, and iBlue parameters can
vary between 0 and 255. The value for the iColor parameter can range from 0 to 15 which maps to the normal VGA base colors or you can use the
following reserved names:
BLACK BLUE GREEN CYAN
RED MAGENTA BROWN WHITE
GRAY LIGHT_BLUE LIGHT_GREEN LIGHT_CYAN
LIGHT_RED LIGHT_MAGENTA YELLOW BRIGHT_WHITE
Syntax SystemColor iColor%, iRed%, iGreen%, iBlue%
iColor%—The color index to set the color mix.
iRed%—The red color mix value.
iGreen%—The green color mix value.
iBlue%—The blue color mix value.
Group Host Object
Mode 3270, 5250, VT
Example '$Include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
HostBGColor Cfgxxxx Method
HostColor Cfgxxxx Method
HostFGColor Cfgxxxx Method
TerminalMode Property
This read/write property returns the terminal type that is currently defined for the session. You can set this value to change the base terminal type for
an unconnected session only. Changing this value takes effect only after a session is disconnected and reconnected. You can use the following literals
to test the returned value:
• TERMINAL_3270
• TERMINAL_TELNET
• TERMINAL_5250
Syntax iMode% = TerminalMode
Group Host Object
Mode 3270, 5250, VT
Example '$Include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iMode = HE.CurrentHost.TerminalMode
MsgBox "The current Terminal Mode is " + iMode, ,
"Information"
End Sub
Related Topics
Device3279 Property
EAB Property
Text Property
You can use this property to retrieve and update the entire screen as a string. Nulls are converted to blanks. The size of the string returned is the
number of columns * the number of bytes.
Syntax szText$ = Text
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szTxt$ = HE.CurrentHost.Text
MsgBox "Screen Content: " &szTxt$
End Sub
Related Topics
Row Method
TextRC Property
TextRC Method
You can use this method to retrieve part of the screen as a string. You must specify a valid row and column. The first position on the screen is Row 1
Column 1. The iLength% value can be:
• 0—Copy to End of Field.
• -1—Copy to End of Line.
• -2—Copy to End of Word.
• -3—Copy to End of Screen.
• >0—Exact length specified.
Syntax szText$ = TextRC( iRow%, iCol%, iLength% )
iRow%—The row that contains the text to retrieve.
iCol%—The column that contains the text to retrieve.
iLength%—The length of text to retrieve.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szTxt$ = HE.CurrentHost.TextRC( 5, 5, 20 )
End Sub
Related Topics
Row Method
Text Property
TN3270 Property
This read-only property returns TRUE if HostExplorer is currently in 3270 or 5250 mode. It returns FALSE if HostExplorer is in VT or NVT terminal
mode.
Syntax bVal = TN3270
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bMode = HE.CurrentHost.TN3270
If bMode = TRUE then
MsgBox "The current session is in 3270 or 5250
Mode."
Else
MsgBox "The current session is in VT Mode."
End If
End Sub
TrackMenu Method
You can use this method to display the track menu at the current mouse pointer location.
Syntax TrackMenu
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.TrackMenu
End Sub
Update Method
You can use this method to force a repaint of the session window.
Syntax Update
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Update
End Sub
WaitConnected Method
You can use this method to synchronize the connection process to a host. This method will wait until the connection is complete or for up to 'iTimeout'
seconds. Valid return codes are:
• 0—Connection complete.
• 1—Timer expired. Emulator is not connected.
Syntax iRc% = WaitConnected( iTimeout& )
iTimeout&—The timeout for the method (in seconds).
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.StartSession "Default.3270"
iRc% = HE.CurrentHost.WaitConnected( 60 )
End Sub
Related Topics
Connect Method
ConnectErrorStatus Property
ConnectRC Property
WaitForIO Method
You can use this method (when using the Demo Link) to wait for the user to press an action key such as Enter or PFx. Valid return codes are:
• 0—Action key pressed.
• 1—Timer expired.
Syntax iRc% = WaitForIO( iTimeout& )
iTimeout&—The timeout for the method (in seconds).
Group Host Object
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
If iRc% = 0 Then
cAID$ = HE.CurrentHost.GetIOBuffer( -1 )
strField1$ = HE.CurrentHost.GetIOBuffer( 1 )
End If
End Sub
Related Topics
GetIOBuffer Property
WaitForString Method
You can use this method to wait for a string to appear on the screen. This function is provided for compatibility purposes and has been superseded by
the WaitForStringRC method.
Valid return codes are:
• 0—The string was not found.
• >0—The row where the string was found.
Syntax iRc% = WaitForString (szString$, iRow%, iTimeout&,
bCaseSensitive )
szString$—The string that HostExplorer attempts to find.
iRow%—The values are:
>0—The row to search for the string.
0—Search the entire screen.
-1—Search the row containing the cursor.
iTimeout&—The timeout for the method (in seconds).
bCaseSensitive—TRUE/FALSE if the search is case-sensitive.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.StartSession "Solaris.VT"
HE.CurrentHost.WaitConnected 120
Related Topics
WaitForStringRC Method
WaitForStringRC Method
You can use this method to wait for a string to appear on the screen. For example, this method is useful when logging in or writing macros for UNIX
systems running in Linemode. Valid return codes are:
• 0—The string was not found.
• >0—The row where the string was found.
Syntax iRc% = WaitForStringRC( szString$, iRow%, iCol%, iFlag%, iTimeout&,
bCaseSensitive )
szString$—The string that HostExplorer attempts to find.
iRow%—The values are:
>0—The row to search for the string.
0—Search the entire screen.
-1—Search the row containing the cursor.
iCol%—The column in which to start the search.
iFlag%—The values are:
0—Search using the iRow% value.
1—Search only at iRow% / iCol% (Requires iRow% >= 1).
2—Search from the beginning at iRow% / iCol%
(Requires iRow% >= 1 )
iTimeout&—The timeout for the method (in seconds).
bCaseSensitive—TRUE/FALSE if the search is case-sensitive.
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.StartSession "Solaris.VT"
HE.CurrentHost.WaitConnected 120
Related Topics
WaitForString Method
WaitIdle Method
You can use this method to wait until the screen is idle for 'IdleTime' milliseconds. An idle screen is one that does not change in any fashion for the
elapsed time. Valid return codes are:
• 0—Idletime has elapsed.
• 1—Session is closed during the waiting period.
Syntax iRc% = WaitIdle( iIdleTime& )
iIdleTime&—The timeout for the method (in milliseconds).
Group Host Object
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.RunCmd( "PF1" )
Result = HE.CurrentHost.WaitIdle( 1500 )
if (Result = 0) then
MsgBox "Time has elapsed", , "Output"
else
MsgBox "The session was closed during the waiting period.", , "Output"
end if
End Sub
Related Topics
WaitForString Method
WaitForStringRC Method
WaitPSUpdated Method
You can use this method to synchronize events with the Host system. This method will wait until the PS is updated, for up to 'iTimeout' seconds. Valid
return codes are:
• 0—PS was updated within the timeout period.
• 1—Timer expired. PS was not updated.
Syntax iRc% = WaitPSUpdated( iTimeout& )
iTimeout&—The timeout for the method (in seconds).
Group Host Object
Mode 3270, 5270, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
If iRc% = 0 Then
MsgBox "PS updated within interval specified"
End If
End Sub
Related Topics
PSUpdated Property
WaitXfer Method
You can use this method to wait until a file transfer is completed. This synchronizes the macro with the file transfer.
Syntax WaitXfer
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
IsXfer Property
XferCount Property
XferRC Property
XferCount Property
You can use this property to return the number of bytes transferred in the current or last file transfer.
Syntax iBytes& = XferCount
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iBytes& = HE.CurrentHost.XferCount
End Sub
Related Topics
IsXfer Property
WaitXfer Method
XferRC Property
XferRC Property
This read-only property returns the error code for the last file transfer. The return codes are consistent with those found in the EHLLAPI and DDE
application program interfaces.
Syntax iRc% = XferRC
Group Host Object
Mode 3270
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Related Topics
IsXfer Property
WaitXfer Method
XferCount Property
Methods and Properties of the Area Object
The Area object provide access to a specified area of the screen. You can use the methods and properties of the Area object to write to or read from
the presentation space (PS). For example, you can read to or write from the Operator Information Area (OIA) in 3270 sessions.
The following Area object methods and properties are available:
Application Property
Bottom Property
Copy Method
Cut Method
Delete Method
Left Property
Parent Property
Paste Method
Right Property
Select Method
Top Property
Type Property
Value Property
Application Property
You can use this read-only property to return the System object.
Syntax Area.Application
Group Area Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, AllSess As Object, Sess As Object
Dim MyScreen As Object, MyArea As Object
Dim TBars As Object, MyTBar As Object
Bottom Property
This property returns or sets the last row of the Area object.
Syntax Area.Bottom
Group Area Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As Object
' This illustrates the Top and Bottom properties for an Area
' object. For demonstration purposes, the Select method is used,
' but it is not required for setting Top and Bottom properties.
MsgBox "Press to demonstrate the Top and Bottom properties for Area
objects."
Set MyArea = MyScreen.Area(1, 1, MyScreen.Rows, MyScreen.Cols,,3)
MyArea.Select
For i = 1 to Int(MyScreen.Rows/2)
MyArea.Top = MyArea.Top + 1
MyArea.Select
MyArea.Bottom = MyArea.Bottom – 1
MyArea.Select
Next
You can use the Copy method to copy data from the screen to the clipboard.
Syntax Area.Copy
Group Arean Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object, My Area As Object
' This example demonstrates the Copy method for Screen objects.
Set MyScreen = Sess.Screen
MyScreen.SelectAll
MyScreen.Copy
MsgBox "The screen was copied to the clipboard. Press to copy a smaller
area."
' This example demonstrates the Copy method for Area objects.
Set MyArea = MyScreen.Area(1,1,10,10 , ,)
MyArea.Select
MyArea.Copy
End Sub
Cut Method
You can use this method to cut the current selection of the screen to the clipboard.
Syntax Area.Cut
Group Area Object
Mode 3270, 5250
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object
Dim MyArea As Object
' Invoke the clipboard viewer
Shell("clipbrd.exe")
' This example demonstrates the Cut method for Area objects.
Set MyArea = MyScreen.Area(1,1,10,10 , ,)
MyArea.Select
MyArea.Cut
MsgBox "Press to Cut the entire Screen."
' This example demonstrates the Cut method for Screen objects.
MyScreen.SelectAll
MyScreen.Cut
End Sub
Delete Method
You can use this method to remove the current selection from the screen.
Syntax Area.Delete
Group Area Object
Mode 3270, 5250
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object
Dim MyArea As Object
Left Property
This property returns or sets the column of the screen where the area begins.
Syntax Area.Left
Group Area Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As
Object
MyArea.Left = 2
MyArea.Right = 2
Parent Property
MsgBox MyScreen.Parent.Parent.Parent.Name
This method pastes text residing on the cliboard into the Area object.
Syntax Area.Paste
Group Area Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object
Dim MyArea As Object
' This example demonstrates the Paste method for Screen objects.
' Set MyScreen = Sess.Screen
MyScreen.Select 7,10,7,10
MyScreen.Copy
MyScreen.Select 23,6,23,6
MyScreen.Paste
' This example demonstrates the Paste method for Area objects.
Set MyArea = MyScreen.Area(9,10,9,10,,3)
MyArea.Select
MyArea.Copy
Set MyArea = MyScreen.Area(23,6,23,6,,3)
MyArea.Select
MyArea.Paste
End Sub
Right Property
This property returns or sets the column of the screen where the area ends.
Syntax Area.Right
Group Area Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As
Object
Select Method
Top Property
This property returns or sets the row where the area starts.
Syntax Area.Top
Group Application Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As Object
' This illustrates the Top and Bottom properties for an Area ' object.
For demonstration purposes, the Select method is used, ' but it is not
required for setting Top and Bottom properties.
MsgBox "Press to demonstrate the Top and Bottom properties for Area
objects."
Set MyArea = MyScreen.Area(1, 1, MyScreen.Rows, MyScreen.Cols,,3)
MyArea.Select
For i = 1 to Int(MyScreen.Rows/2)
MyArea.Top = MyArea.Top + 1
MyArea.Select
MyArea.Bottom = MyArea.Bottom – 1
MyArea.Select
Next
Type Property
You can use this property to determine how the area is selected (for example, as a rectangular rane of characters or a continuous stream of
characters).
Syntax Area.Type
Group Area
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As
Object
You can use this property to return or set the text in the Area or Operator Information Area (OIA).
Syntax Area.Value
Group Area Object
Mode 3270, 5250, VT
Example Sub Main()
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As
Object
MyArea.Value = "a"
MyScreen.SendKeys ("<Enter>")
The Hosts.Fields Collection Object is a collection of Field objects. It represents all fields on the current host screen in a logical fashion. Although it is
not an array, you may think of it as a dynamic array. Although the object contains its own set of properties, the particularly useful ones are the
Fields(n), and Fields.Count properties. The Fields(n) return a pointer to the nth field available. The Field index starts at 0. Fields.Count returns the total
number of fields.
In 3270 mode, fields can be protected or unprotected. In a screen that contains at least one attribute, you can typically represent the entire screen by a
collection of fields.
In 5250 mode, fields can only be unprotected. They represent the entries in the format table, areas in which you can type. You cannot use a field
object to get data from a protected portion of the screen.
Syntax Dim Fld as Object
Set Fld = CurrentHost.Fields(n)
iNumFields = CurrentHost.Fields.Count
Group Field Object
Mode 3270, 5250
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
FieldID Method
Attr Property
Within TN3270, this read-only property returns the 3270 attribute of the field selected by the Field object. You can use the following literals to test the
bit options:
• ATTR_MODIFIED
• ATTR_BOLD
• ATTR_NUMERIC
• ATTR_PROTECTED
• ATTR_NONDISPLAY
Within TN5250, this read-only property returns the Field Format Word of the field selected by the Field object.
You can use the following literals to test the bit options:
• FFW_BYPASS • FFW_SIGNEDNUMERIC
• FFW_ALLOWDUP • FFW_AUTOENTERONEXIT
• FFW_MDT • FFW_FIELDEXITREQUIRED
• FFW_SHIFTEDITMASK • FFW_MONOCASE
• FFW_ALPHASHIFT • FFW_MANDATORYENTRY
• FFW_ALPHAONLY • FFW_RIGHTFILLMASK
• FFW_NUMERICSHIFT • FFW_NOADJUST
• FFW_NUMERICONLY • FFW_RIGHTADJUSTZEROFILL
• FFW_KATASHIFT • FFW_RIGHTADJUSTBLANKFILL
• FFW_DIGITSONLY • FFW_MANDATORYFILL
• FFW_IO
Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
ExtAttr Property
ExtAttr Property
Within TN3270, this read-only property returns the extended 3270 attribute of the field selected by the Field object. The extended attribute defines the
color and highlighting for the field. You can use the following literals to test the bit options:
• ATTR_REVERSE
• ATTR_BLINK
• ATTR_UNDERLINE
Within TN5250, this read-only property returns the Field Control Word of the field selected by the Field object.
You can use the following literals to test the bit options:
• FCW_LIGHTPEN
• FCW_STRIPEANDLIGHTPEN
Syntax iExtAttr% = ExtAttr
Group Field Object
Mode 3270, 5250
Example '$Include:"-E\hebasic.ebh"
Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
Attr Property
IsBold Property
This read-only property returns TRUE (-1) if the field is bold or FALSE (0) if it is not.
Syntax bVal = IsBold
Group Field Object
Mode 3270
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
IsHidden Method
IsModified Method
IsNumeric Method
IsPenSelectable Method
IsProtected Method
IsHidden Property
This read-only property returns TRUE (-1) if the field is hidden (non-visible) or FALSE (0) if it is not (visible).
Syntax bVal = IsHidden
Group Field Object
Mode 3270, 5250
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
IsBold Method
IsModified Method
IsNumeric Method
IsPenSelectable Method
IsProtected Method
IsModified Property
This read-only property returns TRUE (-1) if the field is modified or FALSE (0) if it is not.
Syntax bVal = IsModified
Group Field Object
Mode 3270
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
IsBold Method
IsHidden Method
IsNumeric Method
IsPenSelectable Method
IsProtected Method
IsNumeric Property
This read-only property returns TRUE (-1) if the field is numeric or FALSE (0) if it is not.
Syntax bVal = IsNumeric
Group Field Object
Mode 3270
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
IsBold Method
IsHidden Method
IsModified Method
IsPenSelectable Method
IsProtected Method
IsPenSelectable Property
This read-only property returns TRUE (-1) if the field is pen selectable or FALSE (0) if it is not.
Syntax bVal = IsPenSelectable
Group Field Object
Mode 3270
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
IsBold Method
IsHidden Method
IsModified Method
IsNumeric Method
IsProtected Method
IsProtected Property
This read-only property returns TRUE (-1) if the field is protected or FALSE (0) if it is not.
Syntax bVal = IsProtected
Group Field Object
Mode 3270
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
IsBold Method
IsHidden Method
IsModified Method
IsNumeric Method
IsPenSelectable Method
Length Property
This read-only property returns the length of the field selected by the Field object.
Syntax iLen% = Length
Group Field Object
Mode 3270, 5250
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Pos Property
This read-only property returns the position of the field selected by the Field object. The first position on the screen is 1.
Syntax iPos% = Pos
Group Field Object
Mode 3270, 5250
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Related Topics
Length Property
Text Property
You can use this property to get or set the contents of the field as a string. The system converts all Nulls to Blanks and removes all trailing blanks.
Syntax szText$ = Text
Group Field Object
Mode 3270, 5250
Example Sub Main
Dim Fld as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
' Get second field object
Set Fld = HE.CurrentHost.Fields(2)
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
He.CurrentHost.Cfg3270.CursorType = CURSOR_BLOCK
End Sub
'$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
With He.CurrentHost.Cfg3270.CursorType =
CURSOR_BLOCK
End With
End Sub
'$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Dim Cfg as Object
Set Cfg = HE.CurrentHost.Cfg3270
Cfg.CursorType = CURSOR_BLOCK
End Sub
Cfg5250 Objects List
The Cfg5250 object lets you configure all aspects of a 5250 session. Unlike other objects, the Cfg5250 object only exists to group 5250 configuration
methods. It has no properties of its own.
You can access configuration methods directly, using the With statement or by creating an object for easy reference.
Example '$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Cfg5250.CursorType = CURSOR_BLOCK
End Sub
'$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
With HE.CurrentHost.Cfg5250.CursorType =
CURSOR_BLOCK
End With
End Sub
'$include:"-E\hebasic.ebh"
Sub Main
Dim Cfg as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Set Cfg = HE.CurrentHost.Cfg5250
Cfg.CursorType = CURSOR_BLOCK
End Sub
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.CfgVT.CursorType = CURSOR_BLOCK
End Sub
'$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Sub Main
Dim Cfg as Object
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
Set Cfg = HE.CurrentHost.CfgVT
Cfg.CursorType = CURSOR_BLOCK
End Sub
iValue% = HE.CurrentHost.CfgVT.ActionOnExist
HE.CurrentHost.CfgVT.ActionOnExist = XFER_OVERWRITE
End Sub
Related Topics
DefaultRecvDir CfgVT Property
FileXferProtocol CfgVT Property
ShowRecvDialog CfgVT Property
bValue = HE.CurrentHost.Cfg3270.AlwaysAutoSkip
HE.CurrentHost.Cfg3270.AlwaysAutoSkip = TRUE
End Sub
szValue$ = HE.CurrentHost.CfgVT.Answerback
HE.CurrentHost.CfgVT.Answerback = "Hello World"
End Sub
Related Topics
ConcealAnswerback CfgVT Property
iAreaCode% = HE.CurrentHost.CfgVT.AreaCode
HE.CurrentHost.CfgVT.AreaCode = 514
End Sub
Related Topics
Country CfgVT Property
DirectToModem CfgVT Property
Modem CfgVT Property
ShowDialUpDlg CfgVT Property
UseDialProperties CfgVT Property
You can use this property to get or set the Auto Clear File Transfer Monitor option.
Syntax AutoClearXferMonitor = TRUE/FALSE
Group Cfg3270, CfgVT
Mode 3270, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue =
HE.CurrentHost.Cfg3270.AutoClearXferMonitor
HE.CurrentHost.Cfg3270.AutoClearXferMonitor = TRUE
End Sub
Related Topics
XferBlockSize Cfg3270 Property
XferHostSystem Cfg3270 Property
XferProgramName Cfg3270 Property
XferStartAction Cfg3270 Property
You can use this property to get or set the Auto Copy Selected Text option.
Syntax AutoCopySelectedText = TRUE/FALSE
Group Cfg3270 , Cfg5250 , CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue =
HE.CurrentHost.Cfg3270.AutoCopySelectedText
HE.CurrentHost.Cfg3270.AutoCopySelectedText = TRUE
End Sub
You can use this property to get or set the Auto Quick-Key/Macro/Quick Script Name option. The value can be the name of a Quick-Key (*.qk3,
*.qk5, *.qkv), macro (*.ebs or .ebx), or Quick Script (*.qs3, *.qs5, or *.qsv) file.
Note: If you specify only the file name, make sure that the file is in its default directory. Otherwise, specify the full directory path.
szAutoMacro$ = HE.CurrentHost.Cfg3270.AutoMacro
HE.CurrentHost.Cfg3270.AutoMacro = "RunMeFirst.ebs"
End Sub
bValue = HE.CurrentHost.Cfg3270.AutoUnlockKeyboard
HE.CurrentHost.Cfg3270.AutoUnlockKeyboard = TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.AutoWrap
HE.CurrentHost.CfgVT.AutoWrap = TRUE
End Sub
You can use this property to get or set the Bell Margin column. The column value must be between 1 and the total number of columns.
Syntax BellMargin = iNewColumn%
Group Cfg3270 , Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue% = HE.CurrentHost.Cfg3270.BellMargin
HE.CurrentHost.Cfg3270.BellMargin = 72
End Sub
Related Topics
LeftMargin Cfgxxxx Property
RightMargin Cfgxxxx Property
bValue = HE.CurrentHost.CfgVT.BitMode
HE.CurrentHost.CfgVT.BitMode = TRUE
End Sub
You can use this property to get or set the Convert Blink to Italic option.
Syntax BlinkToItalic = TRUE/FALSE
Group Cfg3270 , Cfg5250 , CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.BlinkToItalic
HE.CurrentHost.Cfg3270.BlinkToItalic = TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.BSIsDel
HE.CurrentHost.CfgVT.BSIsDel = TRUE
End Sub
HE.CurrentHost.Cfg3270.ClearAllTabStops
End Sub
Related Topics
TabStop Cfgxxxx Method
bValue = HE.CurrentHost.Cfg5250.ColorDisplay
HE.CurrentHost.Cfg5250.ColorDisplay = TRUE
End Sub
bValue =
HE.CurrentHost.CfgVT.CompressBlankLinesInScrollback
HE.CurrentHost.CfgVT.CompressBlankLinesInScrollback =
TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.ConcealAnswerback
HE.CurrentHost.CfgVT.ConcealAnswerback = TRUE
End Sub
Related Topics
Answerback CfgVT Property
You can use this property to get or set the connect-timeout option. Use this option when establishing a new session.
Syntax ConnectTimeout = iNewTimeout%
Group Cfg3270 , Cfg5250 , CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.ConnectTimeout
HE.CurrentHost.Cfg3270.ConnectTimeout = 60
End Sub
bValue = HE.CurrentHost.Cfg3270.ConvertNulls
HE.CurrentHost.Cfg3270.ConvertNulls = TRUE
End Sub
szCountry$ = HE.CurrentHost.CfgVT.Country
HE.CurrentHost.CfgVT.Country = "Canada"
End Sub
Related Topics
AreaCode CfgVT Property
DirectToModem CfgVT Property
Modem CfgVT Property
ShowDialUpDlg CfgVT Property
UseDialProperties CfgVT Property
bValue = HE.CurrentHost.CfgVT.CRToCRLF
HE.CurrentHost.CfgVT.CRToCRLF = TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.CursorKeyMode
HE.CurrentHost.CfgVT.CursorKeyMode = TRUE
End Sub
Related Topics
KeypadMode CfgVT Property
You can use this property to get or set the Cursor Mode option. The values can be CURSOR_BLINK or CURSOR_SOLID.
Syntax CursorMode = iNewMode%
Group Cfg3270 , Cfg5250 , CfgVT
Mode 3270, 5250, VT
Example '$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.CursorMode
HE.CurrentHost.Cfg3270.CursorMode = CURSOR_BLINK
End Sub
Related Topics
CursorType Cfgxxxx Property
You can use this property to get or set the Cursor Type option. The possible values are:
• CURSOR_UNDERSCORE
• CURSOR_BLOCK
• CURSOR_LINE
Syntax CursorType = iNewType%
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example '$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.CursorType
HE.CurrentHost.Cfg3270.CursorType = CURSOR_BLOCK
End Sub
Related Topics
CursorMode Cfgxxxx Property
iValue = HE.CurrentHost.CfgVT.DefaultHeight
HE.CurrentHost.CfgVT.DefaultHeight = 24
End Sub
Related Topics
DefaultWidth CfgVT Property
szPath = HE.CurrentHost.CfgVT.DefaultRecvDir
HE.CurrentHost.CfgVT.DefaultRecvDir = "c:\temp"
End Sub
Related Topics
ActionOnExist CfgVT Property
FileXferProtocol CfgVT Property
ShowRecvDialog CfgVT Property
Value = HE.CurrentHost.CfgVT.DefaultWidth
HE.CurrentHost.CfgVT.DefaultWidth = 80
End Sub
Related Topics
DefaultHeight CfgVT Property
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.Dev7171Terminal
HE.CurrentHost.Cfg3270.Dev7171Terminal =
DEV7171_VT100
End Sub
bValue = HE.CurrentHost.CfgVT.DirectToModem
HE.CurrentHost.CfgVT.DirectToModem = TRUE
End Sub
Related Topics
AreaCode CfgVT Property
Country CfgVT Property
Modem CfgVT Property
ShowDialUpDlg CfgVT Property
UseDialProperties CfgVT Property
You can use this property to get or set the Frame Terminal as Workspace's Background option. This option determines whether HostExplorer frames
the terminal as the background of the workspace.
Syntax Display3DBorder = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.Display3DBorder
HE.CurrentHost.Cfg3270.Display3DBorder = TRUE
End Sub
bValue = HE.CurrentHost.Cfg3270.DisplayAttr
HE.CurrentHost.Cfg3270.DisplayAttr = TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.DisplayControlCodes
HE.CurrentHost.CfgVT.DisplayControlCodes = TRUE
End Sub
You can use this property to get or set the Display Row/Col Indicator option.
Syntax DisplayRowCol = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = He.CurrentHost.Cfg3270.DisplayRowCol
HE.CurrentHost.Cfg3270.DisplayRowCol = TRUE
End Sub
You can use this property to get or set the All Upper Case option.
Syntax DisplayUpperCase = TRUE/FALSE
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.DisplayUpperCase
HE.CurrentHost.Cfg3270.DisplayUpperCase = TRUE
End Sub
bValue = HE.CurrentHost.Cfg3270.EntryAssist
HE.CurrentHost.Cfg3270.EntryAssist = TRUE
End Sub
Related Topics
WordWrap Cfgxxxx Property
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.CfgVT.FileXferProtocol
HE.CurrentHost.CfgVT.FileXferProtocol =
XFER_TYPE_ZMODEM
End Sub
Related Topics
ActionOnExist CfgVT Property
DefaultRecvDir CfgVT Property
ShowRecvDialog CfgVT Property
bValue = HE.CurrentHost.Cfg3270.ForceAltSize
HE.CurrentHost.Cfg3270.ForceAltSize = TRUE
End Sub
You can use this property to get or set the Force Exact Size Font option.
Syntax ForceExactSize = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.ForceExactSize
HE.CurrentHost.Cfg3270.ForceExactSize = TRUE
End Sub
You can use this property to get or set the IP Host/Gateway option (for Telnet connections) or the phone number to dial (for Modem connections).
Syntax Host = szNewHost$
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szValue$ = HE.CurrentHost.Cfg3270.Host
HE.CurrentHost.Cfg3270.Host = "myhost.mydomain"
End Sub
You can use this method to retrieve the background color for a given 3270, 5250, or Telnet system color.
Syntax iBG% = .HostBGColor( iColor% )
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iBG% = HE.CurrentHost.Cfg3270.HostBGColor( 2 )
MsgBox "The value for that specified background system color is " & iBG% ,, "Color
Information"
End Sub
Related Topics
SystemColor Method
HostColor Cfgxxxx Method
HostFGColor Cfgxxxx Method
You can use this method to set the foreground and background colors for 3270, 5250, or Telnet system color.
Syntax HostColor iColor%, iFG%, iBG%
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Cfg3270.HostColor 2, 5, 1
End Sub
Related Topics
SystemColor Method
HostBGColor Cfgxxxx Method
HostFGColor Cfgxxxx Method
You can use this method to retrieve the foreground color for a given 3270, 5250, or Telnet system color.
Syntax iFG% = .HostFGColor( iColor% )
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iFG% = HE.CurrentHost.Cfg3270.HostFGColor( 2 )
MsgBox "The value for that specified foreground system color is " & iFG% & ". Color
Information"
End Sub
Related Topics
SystemColor Method
HostBGColor Cfgxxxx Method
HostColor Cfgxxxx Method
KermitBinPrefix CfgVT Property
You can use this property to get or set the Binary Prefix flag.
Syntax KermitBinPrefix = TRUE/FALSE
Group CfgVT
Mode VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bVal = HE.CurrentHost.CfgVT.KermitBinPrefix
HE.CurrentHost.CfgVT.KermitBinPrefix = FALSE
End Sub
Related Topics
KermitCompression CfgVT Property
KermitTextMode CfgVT Property
KermitUseFullPath CfgVT Property
bVal = HE.CurrentHost.CfgVT.KermitCompression
HE.CurrentHost.CfgVT.KermitCompression = FALSE
End Sub
Related Topics
KermitBinPrefix CfgVT Property
KermitTextMode CfgVT Property
KermitUseFullPath CfgVT Property
KermitTextMode CfgVT Property
You can use this property to get or set the Text Mode flag.
Syntax KermitTextMode = TRUE/FALSE
Group CfgVT
Mode VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bVal = HE.CurrentHost.CfgVT.KermitTextMode
HE.CurrentHost.CfgVT.KermitTextMode = FALSE
End Sub
Related Topics
KermitBinPrefix CfgVT Property
KermitCompression CfgVT Property
KermitUseFullPath CfgVT Property
bVal = HE.CurrentHost.CfgVT.KermitUseFullPath
HE.CurrentHost.CfgVT.KermitUseFullPath = FALSE
End Sub
Related Topics
KermitBinPrefix CfgVT Property
KermitCompression CfgVT Property
KermitTextMode CfgVT Property
KeyboardProfileName Cfgxxxx Method
You can use this method to change the current keyboard profile. This method loads the specified keyboard profile as the active session keyboard
profile.
Syntax KeyboardProfileName szKeyProfile$
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Cfg3270.KeyboardProfileName =
"MYKEYBOARD"
End Sub
bValue = HE.CurrentHost.CfgVT.KeypadMode
HE.CurrentHost.CfgVT.KeypadMode = TRUE
End Sub
Related Topics
CursorKeyMode CfgVT Property
iValue =
HE.CurrentHost.Cfg3270.LeftMargin
HE.CurrentHost.Cfg3270.LeftMargin = 5
End Sub
Related Topics
BellMargin Cfgxxxx Property
RightMargin Cfgxxxx Property
iValue = HE.CurrentHost.CfgVT.LinesInScrollback
HE.CurrentHost.CfgVT.LinesInScrollback= 120
End Sub
iValue = HE.CurrentHost.CfgVT.Linemode
HE.CurrentHost.CfgVT.Linemode = 0
End Sub
Related Topics
TelnetEcho CfgVT Property
bValue = HE.CurrentHost.CfgVT.LocalEcho
HE.CurrentHost.CfgVT.LocalEcho = TRUE
End Sub
You can use this property to get or set the Session Long Name option. This property will accept only the first 8 characters.
Syntax LongName = szNewName$
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szValue = HE.CurrentHost.Cfg3270.LongName
HE.CurrentHost.Cfg3270.LongName =
"VM/CMS"
End Sub
You can use this property to get or set the Logical Units (LU) Name option.
Syntax LUName = szNewLUName$
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szValue = HE.CurrentHost.Cfg3270.LUName
HE.CurrentHost.Cfg3270.LUName = "LU1234"
End Sub
szCurrentModem$ = HE.CurrentHost.CfgVT.Modem
HE.CurrentHost.CfgVT.Modem = "MyModem"
End Sub
Related Topics
AreaCode CfgVT Property
Country CfgVT Property
DirectToModem CfgVT Property
Modem CfgVT Property
ShowDialUpDlg CfgVT Property
UseDialProperties CfgVT Property
You can use this property to get or set the Multiline Delete Mode option.
Syntax MultiLineDelete = TRUE/FALSE
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.MultiLineDelete
HE.CurrentHost.Cfg3270.MultiLineDelete = TRUE
End Sub
Related Topics
MultiLineInsert Cfgxxxx Property
You can use this property to get or set the Multiline Insert Mode option.
Syntax MultiLineInsert = TRUE/FALSE
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.MultiLineInsert
HE.CurrentHost.Cfg3270.MultiLineInsert = TRUE
End Sub
Related Topics
MultiLineDelete Cfgxxxx Property
You can use this property to get or set the Notify (Update Alarm) option.
Syntax Notify = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = He.CurrentHost.Cfg3270.Notify
HE.CurrentHost.Cfg3270.Notify = TRUE
End Sub
szValue = HE.CurrentHost.CfgVT.NRCSet
HE.CurrentHost.CfgVT.NRCSet = "None"
End Sub
You can use this property to get or set the Upon Disconnect option. You can use the following literals to read or change the value:
• ONDISC_CLOSEWINDOW
• ONDISC_KEEPWINDOWOPEN
• ONDISC_RESTARTSESSION
• ONDISC_SHOWNEWSESSION
Syntax OnDisconnect = iNewDisconnectMode%
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example '$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.OnDisconnect
HE.CurrentHost.Cfg3270.OnDisconnect=
ONDISC_CLOSEWINDOW
End Sub
bValue = HE.CurrentHost.CfgVT.Online
HE.CurrentHost.CfgVT.Online = TRUE
End Sub
bValue =
HE.CurrentHost.CfgVT.OptimizedDisplayMode
HE.CurrentHost.CfgVT.OptimizedDisplayMode =
TRUE
End Sub
You can use this method to set the contents of the Password variable used in the macro system.
Syntax Password = szNewPassword$
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Cfg3270.Password = "givemeaccess"
End Sub
You can use this property to get or set the Print Border setting.
Syntax PrintBorder = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue =
HE.CurrentHost.Cfg3270.PrintBorder
HE.CurrentHost.Cfg3270.PrintBorder = TRUE
End Sub
You can use this property to set or retrieve the document name. You can insert the document name in the print header or print footer using the &F
variable.
Syntax PrintDocumentName = szNewDocumentName$
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szValue$ = HE.CurrentHost.Cfg3270.PrintDocumentName
HE.CurrentHost.Cfg3270.PrintDocumentName = "Test
Document"
End Sub
Related Topics
PrintFooter Cfgxxxx Property
PrintHeader Cfgxxxx Property
szValue = HE.CurrentHost.Cfg3270.PrinterDeInit
HE.CurrentHost.Cfg3270.PrinterDeInit = "\eE"
End Sub
Related Topics
PrinterInit Cfg3270 Property
szValue = HE.CurrentHost.Cfg3270.PrinterInit
HE.CurrentHost.Cfg3270.PrinterInit = "\eE"
End Sub
Related Topics
PrinterDeInit Cfg3270 Property
You can use this property to set or retrieve the Print Screen footer string. This string can contain the following special variables:
• &C—Insert computer name.
• &D—Insert current date.
• &F—Insert document name string.
• &P—Insert page number.
• &T—Insert current line.
• &U—Insert user name.
Syntax PrintFooter = szNewPrintFooter$
Mode 3270, 5270, VT
Example Sub Main
Dim He as Object
Set He = CreateObject( "HostExplorer" )
szValue$ =
He.CurrentHost.Cfg3270.PrintFooter
He.CurrentHost.Cfg3270.PrintFooter = "&U -
&D"
End Sub
Related Topics
PrintDocumentName Cfgxxxx Property
PrintHeader Cfgxxxx Property
You can use this property to set or retieve the Print Screen header string. This string can contain the following special variables:
• &C—Insert computer name.
• &D—Insert current date.
• &F—Insert document name string.
• &P—Insert page number.
• &T—Insert current line.
• &U—Insert user name.
Syntax PrintHeader = szNewPrintHeader$
Mode 3270, 5270, VT
Example Sub Main
Dim He as Object
Set He = CreateObject( "HostExplorer" )
szValue$ =
He.CurrentHost.Cfg3270.PrintHeader
He.CurrentHost.Cfg3270.PrintHeader = "&U -
&D"
End Sub
Related Topics
PrintDocumentName Cfgxxxx Property
PrintFooter Cfgxxxx Property
You can use this property to get or set the Print Location setting. You can use the following literals to test the values returned:
• PRINT_CENTERED
• PRINT_UPPERLEFT
• PRINT_FITTOPAGE
Syntax PrintLocation
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example '$include:"-E\hebasic.ebh"
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.PrintLocation
HE.CurrentHost.Cfg3270.PrintLocation =
PRINT_CENTERED
End Sub
You can use this property to get or set the Print Operator Information Area (OIA) setting.
Syntax PrintOIA = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.PrintOIA
HE.CurrentHost.Cfg3270.PrintOIA = TRUE
End Sub
You can use this property to get or set the profile name for the session. This method takes one parameter that is the name of the profile followed by
the name of the folder separated by a period. For example, to set a profile called "VMCMS" in the "3270" folder, pass a string of "VMCMS.3270". You
can also pass a complete path/file specification (including extension).
Syntax Profile = szNewProfile$
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szValue = He.CurrentHost.Cfg3270.Profile
HE.CurrentHost.Cfg3270.Profile = "ProfileName"
End Sub
You can use this property to get or set the Proportional Fonts option. This property determines whether HostExplorer displays fonts for which you can
alter the font width.
Note: You can set this property to TRUE only if the font is proportional.
You can use this property to get or set the Add FormFeed after Raw Print Screen option.
Syntax RawAddFormFeed = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.RawAddFormFeed
HE.CurrentHost.Cfg3270.RawAddFormFeed = TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.RawCaptureMode
HE.CurrentHost.CfgVT.RawCaptureMode = TRUE
End Sub
bValue = HE.CurrentHost.Cfg3270.ReplyOEM
HE.CurrentHost.Cfg3270.ReplyOEM = TRUE
End Sub
By default, HostExplorer executes the Auto Macro/Quick-Key/Quick Script upon initiating a session. HostExplorer re-executes the Auto Macro/Quick-
Key/Quick Script when you re-connect to a session. You can use this property to get or set the ReRun Auto Macro option.
Syntax ReRunAutoMacro = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue =
HE.CurrentHost.Cfg3270.ReRunAutoMacro
HE.CurrentHost.Cfg3270.ReRunAutoMacro =
TRUE
End Sub
bValue = HE.CurrentHost.Cfg3270.RespectNumeric
HE.CurrentHost.Cfg3270.RespectNumeric = TRUE
End Sub
You can use this property to get or set the Right Margin column. The column value must be between 2 and the total number of columns.
Syntax RightMargin = iNewColumn%
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.RightMargin
HE.CurrentHost.Cfg3270.RightMargin = 16
End Sub
Related Topics
BellMargin Cfgxxxx Property
LeftMargin Cfgxxxx Property
You can use this property to get or set the Save Mode Append option.
Syntax SaveAppend = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue =
HE.CurrentHost.Cfg3270.SaveAppend
HE.CurrentHost.Cfg3270.SaveAppend = TRUE
End Sub
bValue =
HE.CurrentHost.CfgVT.SaveAttrsInScrollback
HE.CurrentHost.CfgVT.SaveAttrsInScrollback = TRUE
End Sub
bValue = HE.CurrentHost.Cfg3270.SaveConfirm
HE.CurrentHost.Cfg3270.SaveConfirm = TRUE
End Sub
You can use this property to get or set the Save Filename option.
Syntax SaveFile = szSaveFile$
Group Cfg3270, Cfg5250, and CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szValue = HE.CurrentHost.Cfg3270.SaveFile
HE.CurrentHost.Cfg3270.SaveFile = "c:\saved.txt"
End Sub
You can use this property to get or set the Save Font Information on Exit option.
Syntax SaveFontOnExit = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.SaveFontOnExit
HE.CurrentHost.Cfg3270.SaveFontOnExit = TRUE
End Sub
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.SaveMode
HE.CurrentHost.Cfg3270.SaveMode = SAVE_ANSI
End Sub
You can use this method to save the current session settings to a profile on disk. This method takes one parameter that is the name of the profile
followed by the name of the folder separated by a period. For example, to save a profile called "VMCMS" in the "3270" folder, pass a string of
"VMCMS.3270". You can also pass a complete path/file specification (including extension).
Syntax SaveProfile szProfileName$
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Cfg3270.SaveProfile
"ProfileName.FolderName"
End Sub
You can use this property to get or set the Save Profile on Window Close option.
Syntax SaveProfileOnClose = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.SaveProfileOnClose
HE.CurrentHost.Cfg3270.SaveProfileOnClose = TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.ShowDialupDlg
HE.CurrentHost.CfgVT.ShowDialupDlg = TRUE
End Sub
Related Topics
AreaCode CfgVT Property
Country CfgVT Property
DirectToModem CfgVT Property
Modem CfgVT Property
UseDialProperties CfgVT Property
You can use this property to get or set the Show Hotspots option.
Syntax ShowHotspots = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.ShowHotspots
HE.CurrentHost.Cfg3270.ShowHotspots = TRUE
End Sub
You can use this property to get or set the Show Nulls option.
Syntax ShowNulls = TRUE/FALSE
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.ShowNulls
HE.CurrentHost.Cfg3270.ShowNulls = TRUE
End Sub
bValue = HE.CurrentHost.CfgVT.ShowRecvDialog
HE.CurrentHost.CfgVT.ShowRecvDialog = TRUE
End Sub
Related Topics
ActionOnExist CfgVT Property
DefaultRecvDir CfgVT Property
FileXferProtocol CfgVT Property
bValue = HE.CurrentHost.CfgVT.SmoothScrolling
HE.CurrentHost.CfgVT.SmoothScrolling = TRUE
End Sub
iValue = HE.CurrentHost.CfgVT.SmoothScrollSpeed
HE.CurrentHost.CfgVT.SmoothScrollSpeed = 2
End Sub
You can use this property to get or set the Sound option.
Syntax Sound = TRUE/FALSE
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.Sound
HE.CurrentHost.Cfg3270.Sound = TRUE
End Sub
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.CfgVT.StatusLineMode
HE.CurrentHost.CfgVT.StatusLineMode =
STATUS_INDICATOR
End Sub
You can use this method to set a tabstop at a given column. The column value must be between 1 and the total number of columns.
Syntax TabStop iColumn%
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
HE.CurrentHost.Cfg3270.TabStop 23
End Sub
Related Topics
ClearAllTabStops Cfgxxxx Method
You can use this property to get or set the TCP Port value. The default value is 23 for telnet.
Syntax TCPPort = iNewPort%
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.TCPPort
HE.CurrentHost.Cfg3270.TCPPort = 23
End Sub
iValue = HE.CurrentHost.CfgVT.TelnetEcho
HE.CurrentHost.CfgVT.TelnetEcho = 2
End Sub
Related Topics
LineMode CfgVT Property
You can use this property to get or set the Telnet Name Override option.
Syntax TelnetName = szNewName$
Group Cfg3270, Cfg5250, CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
szValue = HE.CurrentHost.Cfg3270.TelnetName
HE.CurrentHost.Cfg3270.TelnetName = "IBM-3278-
2"
End Sub
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.TPRINTDestination
HE.CurrentHost.Cfg3270.TPRINTDestination =
TPRINT_CLIPBOARD
End Sub
You can use this property to retrieve or set the Type Ahead option.
Syntax TypeAhead = TRUE/FALSE
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.TypeAhead
HE.CurrentHost.Cfg3270.TypeAhead = TRUE
End Sub
Related Topics
Host Keys Method
Host RunCmd Method
szValue = HE.CurrentHost.CfgVT.UPSSet
HE.CurrentHost.CfgVT.UPSSet = "DEC Supplemental"
End Sub
UseDialProperties CfgVT Property
You can use this property to get or set the Use Area Code and Country Code flag.
Syntax UseDialProperties = TRUE/FALSE
Group CfgVT
Mode VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bVal = HE.CurrentHost.CfgVT.UseDialProperties
HE.CurrentHost.CfgVT.UseDialProperties = FALSE
End Sub
Related Topics
AreaCode CfgVT Property
Country CfgVT Property
DirectToModem CfgVT Property
Modem CfgVT Property
ShowDialUpDlg CfgVT Property
You can use this property to get or set a string indicating the name and/or description displayed in the top right-hand corner of the session window.
Syntax WindowTitle = newWindowTitle$
Group Cfg3270, Cfg5250, and CfgVT
Mode 3270, 5250, VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.CfgVT.WindowTitle
HE.CurrentHost.CfgVT.WindowTitle = "%l - %p(%h)"
End Sub
WordWrap Cfgxxxx Property
You can use this property to get or set the Word Wrap option.
Syntax WordWrap = TRUE/FALSE
Group Cfg3270, Cfg5250
Mode 3270, 5250
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
bValue = HE.CurrentHost.Cfg3270.WordWrap
HE.CurrentHost.Cfg3270.WordWrap = TRUE
End Sub
Related Topics
EntryAssist Cfgxxxx Property
iValue = HE.CurrentHost.Cfg3270.XferBlockSize
HE.CurrentHost.Cfg3270.XferBlockSize = 8192
End Sub
Related Topics
AutoClearXferMonitor Cfg3270 Property
XferHostSystem Cfg3270 Property
XferProgramName Cfg3270 Property
XferStartAction Cfg3270 Property
szValue = HE.CurrentHost.Cfg3270.XferHostSystem
HE.CurrentHost.Cfg3270.XferHostSystem = "CMS"
End Sub
Related Topics
AutoClearXferMonitor Cfg3270 Property
XferBlockSize Cfg3270 Property
XferProgramName Cfg3270 Property
XferStartAction Cfg3270 Property
szValue = HE.CurrentHost.Cfg3270.XferProgramName
HE.CurrentHost.Cfg3270.XferProgramName = "IND$FILE"
End Sub
Related Topics
AutoClearXferMonitor Cfg3270 Property
XferBlockSize Cfg3270 Property
XferHostSystem Cfg3270 Property
XferStartAction Cfg3270 Property
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iValue = HE.CurrentHost.Cfg3270.XferStartAction
HE.CurrentHost.Cfg3270.XferStartAction =
XFER_NOACTION
End Sub
Related Topics
AutoClearXferMonitor Cfg3270 Property
XferBlockSize Cfg3270 Property
XferHostSystem Cfg3270 Property
XferProgramName Cfg3270 Property
bVal =
HE.CurrentHost.CfgVT.XModem16BitCrc
HE.CurrentHost.CfgVT.XModem16BitCrc =
TRUE
End Sub
Related Topics
XModemPkt1024 CfgVT Property
XModemSendTimeout CfgVT Property
bVal = HE.CurrentHost.CfgVT.XModemPkt1024
HE.CurrentHost.CfgVT.XModemPkt1024 = TRUE
End Sub
Related Topics
XModem16BitCrc CfgVT Property
XModemSendTimeout CfgVT Property
lVal& = HE.CurrentHost.CfgVT.XModemSendTimeout
HE.CurrentHost.CfgVT.XModemSendTimeout = 15000
End Sub
Related Topics
XModem16BitCrc CfgVT Property
XModemPkt1024 CfgVT Property
lVal& = HE.CurrentHost.CfgVT.YModemSendTimeout
HE.CurrentHost.CfgVT.YModemSendTimeout = 15000
End Sub
Related Topics
YModemUseFullPath CfgVT Property
bVal = HE.CurrentHost.CfgVT.YModemUseFullPath
HE.CurrentHost.CfgVT.YModemUseFullPath = FALSE
End Sub
Related Topics
YModemSendTimeout CfgVT Property
bVal = HE.CurrentHost.CfgVT.ZModemAutoDownload
HE.CurrentHost.CfgVT.ZModemAutoDownload = FALSE
End Sub
Related Topics
ZModemCrashRecovery CfgVT Property
ZModemMaxErr CfgVT Property
ZModemOverwrite CfgVT Property
ZModemSlidingBytes CfgVT Property
ZModemSlidingWin CfgVT Property
ZModemUseFullPath CfgVT Property
bVal = HE.CurrentHost.CfgVT.ZModemCrashRecovery
HE.CurrentHost.CfgVT.ZModemCrashRecovery = FALSE
End Sub
Related Topics
ZModemAutoDownload CfgVT Property
ZModemMaxErr CfgVT Property
ZModemOverwrite CfgVT Property
ZModemSlidingBytes CfgVT Property
ZModemSlidingWin CfgVT Property
ZModemUseFullPath CfgVT Property
ZModemMaxErr CfgVT Property
You can use this property to get or set the Crash Recovery value.
Syntax ZModemMaxErr = iVal
Group CfgVT
Mode VT
Example Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iVal = HE.CurrentHost.CfgVT.ZModemMaxErr
HE.CurrentHost.CfgVT.ZModemMaxErr = 15
End Sub
Related Topics
ZModemAutoDownload CfgVT Property
ZModemCrashRecovery CfgVT Property
ZModemOverwrite CfgVT Property
ZModemSlidingBytes CfgVT Property
ZModemSlidingWin CfgVT Property
ZModemUseFullPath CfgVT Property
Sub Main
Dim HE as Object
Set HE = CreateObject( "HostExplorer" )
iVal% = HE.CurrentHost.CfgVT.ZModemOverwrite
HE.CurrentHost.CfgVT.ZModemOverwrite =
Z_ALWAYS
End Sub
Related Topics
ZModemAutoDownload CfgVT Property
ZModemCrashRecovery CfgVT Property
ZModemMaxErr CfgVT Property
ZModemSlidingBytes CfgVT Property
ZModemSlidingWin CfgVT Property
ZModemUseFullPath CfgVT Property
iVal = HE.CurrentHost.CfgVT.ZModemSlidingBytes
HE.CurrentHost.CfgVT.ZModemSlidingBytes = 8192
End Sub
Related Topics
ZModemAutoDownload CfgVT Property
ZModemCrashRecovery CfgVT Property
ZModemMaxErr CfgVT Property
ZModemOverwrite CfgVT Property
ZModemSlidingWin CfgVT Property
ZModemUseFullPath CfgVT Property
bVal = HE.CurrentHost.CfgVT.ZModemSlidingWin
HE.CurrentHost.CfgVT.ZModemSlidingWin = FALSE
End Sub
Related Topics
ZModemAutoDownload CfgVT Property
ZModemCrashRecovery CfgVT Property
ZModemMaxErr CfgVT Property
ZModemOverwrite CfgVT Property
ZModemSlidingBytes CfgVT Property
ZModemUseFullPath CfgVT Property
bVal = HE.CurrentHost.CfgVT.ZModemUseFullPath
HE.CurrentHost.CfgVT.ZModemUseFullPath = FALSE
End Sub
Related Topics
ZModemAutoDownload CfgVT Property
ZModemCrashRecovery CfgVT Property
ZModemMaxErr CfgVT Property
ZModemOverwrite CfgVT Property
ZModemSlidingBytes CfgVT Property
ZModemSlidingWin CfgVT Property
Unsupported OLE Methods and Properties
As of version 8.0, the following methods and properties no longer perform their specified actions. However, to properly maintain compatibility with
earlier versions, the methods and properties continue to be members of their corresponding objects.
Application Object
• DelSession method
Host Object
• ShowPoppad Host property
Cfg3270, Cfg5250, and CfgVT Objects
• ALA Cfg3270 property
• ALADisplayMode Cfg3270 property
• ALAInputMode Cfg3270 property
• ALAKeyboardProfileName Cfg3270 method
• ClearScreenOnSizeChange CfgVT property
• CursorSelectMode Cfgxxxx property
• FTPApplicationName Cfgxxxx property
Related Topics
Methods and Properties of the Application Object
Methods and Properties of the Host Object
Methods and Properties of the Cfg3270, Cfg5250, and CfgVT Objects
Differences between Hummingbird Basic and WinWrap Basic
This section lists the differences between Hummingbird Basic and WinWrap Basic.
Note: WinWrap Basic was used in HostExplorer v4.x.
Differences between Hummingbird Basic and WinWrap:
Assignment Group
Constant Group
Conversion Group
Data Type Group
DDE Group
Declaration Group
DefType Statement
Dialog Methods and Statements
Error Handling Group
File Group
Flow Control Group
Math Group
Miscellaneous Group
Object Group
Operators Group
Settings Group
String Group
TimeDate Group
User Dialog Group
User Input Group
Variable Info Group
Related Topics
OLE Objects
Methods and Properties of the Application Object
Methods and Properties of the Field Object
Methods and Properties of the Host Object
Methods and Properties of the Hosts Object
Methods and Properties of the Cfg3270, Cfg5250 and CfgVT Objects
Assignment Group
Erase—Reinitializes the elements of fixed-size arrays and frees dynamic storage space. Not supported by Hummingbird Basic. Supported by
Microsoft Visual Basic.
Let—Assigns the value of an expression to a variable or property. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.
Lset—Left-aligns a string variable or copies a variable of one user-defined type to another variable of a different user-defined type.
Set—Assigns an object reference to a variable or property.
New—In the Set statement, New allocates and initializes a new object of the named class.
Rset—Right-aligns a string within a string variable.
Constant Group
Empty—A variant that does not have any value. Not supported by Hummingbird Basic.
FALSE—An expression is false when its value is zero. Not supported by Hummingbird Basic, instead an integer value zero is used.
Nothing—An object value that does not refer to an object.
Null—The Null method returns a variant value set to the null value. Null is used to explicitly set a variant to the null value.
TRUE—An expression is TRUE when its value is non-zero. Not supported by Hummingbird Basic, instead an integer value not equal to zero is used.
Win16—TRUE if running in 16-bits. FALSE if running in 32-bits. Not supported by Hummingbird Basic.
Win32— TRUE if running in 32-bits. FALSE if running in 16-bits. Not supported by Hummingbird Basic.
Conversion Group
Array—Returns a variant containing an array. Declaring the dimension for WinWrap Basic and Hummingbird Basic is very similar, but there are
differences in Microsoft Visual Basic.
Cbool—Converts a number or string to a Boolean value.
Note: Boolean is not supported by Hummingbird Basic.
Cbyte—Converts a number or string value to a byte value.
Note: Boolean is not supported by Hummingbird Basic.
Ccur—Converts a number or string value to a currency value.
Cdate—Converts a number or string value to a date value.
Note: Boolean is not supported by Hummingbird Basic.
CDbl—Converts a number or string value to a double-precision real value.
Cint—Converts a value to an integer by rounding.
CLng—Converts a value to a Long by rounding.
CSng—Converts a value to a single-precision float point.
CStr—Converts a number or string value to a string value.
Cvar—Converts a value to a variant.
CVDate—Converts a value to a variant date.
CVErr—Converts to a variant that contains an error code. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.
Data Type Group
Boolean—A true or false value. It uses integer values to represent true and false.
Byte—An 8-bit unsigned integer value.
Currency—Currency variables are stored as 64-bit numbers in an integer format.
Date—The whole part represents the date, while the fractional part is the time of day.
Double—A 64-bit real value.
Integer—A 16-bit integer value.
Long—A 32-bit integer value.
Object—An object reference value.
PortInt—A portable integer value.
Single—A 32-bit real value.
String—An arbitrary-length string value.
String*n—A fixed-length (n) string value. Not supported by Hummingbird Basic.
Variant—An empty, numeric, currency, date, string, object, error code, null, or array value.
DDE Group
DDEExecute—Sends one or more commands to an application using a Dynamic Data Exchange (DDE) channel.
DDEInitiate—Opens a DDE channel and returns the DDE channel number (1,2, and so on).
DDEPoke—Sends data to an application on an open DDE channel.
DDERequest—Returns data from an application on an open DDE channel.
DDETerminate—Closes the specified DDE channel.
DDETerminateAll—Terminates all open DDE channels. Not supported by Hummingbird Basic.
Declaration Group
Attributes—Sets or returns a value that indicates one or more characteristics of a Field, Relation. Not supported by Hummingbird Basic. Supported by
Microsoft Visual Basic.
Declare—Used at the module level to declare references to external procedures in a dynamic-link library (DLL).
Class_Initialize—A class module-initialization subroutine. Each time a new instance is created for a class module, the Class_Initialize subroutine is
called. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.
Class_Terminate—A class module-termination subroutine. Each time an instance is destroyed for a class module, the Class_Terminate subroutine is
called. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.
Const—Declares constants for use in place of literal values.
Deftype—Specifies the default data type for one or more variables.
Dim—Declares variables and allocates storage space.
Enum—Declares a type for an enumeration. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic
Friend—Modifies the definition of a procedure in a class module to make the procedure callable from modules that are outside the class, but part of
the project within which the class is defined.
Functions—Declares the name, argument, and code that forms the body of a function procedure.
Global—An Application object that enables you to access application-level properties and methods.
Option Explicit—Specifies that all variables in a module must be explicitly declared.
Object_Initialize—An object module-initialization subroutine. Not supported by Hummingbird Basic.
Object_Terminate—An object module-termination subroutine. Not supported by Hummingbird Basic.
Private— Creates arrays (or simple variables) that are available to an entire macro or module, but not other macros or modules. Not supported by
Hummingbird Basic. Supported by Microsoft Visual Basic.
Public—Creates arrays (or simple variables) that are available to an entire macro or module, but not other macros or modules. Not supported by
Hummingbird Basic. Supported by Microsoft Visual Basic.
ReDim—Changes the upper and lower bounds of a dynamic array's dimension.
Static—Used inside procedures to declare variables and allocate storage space.
Sub—Declares the name, arguments, and code that form the body of a subprocedure.
Type—Declares a user-defined type, which can then be used in the Dim statement to declare a record variable.
DefType Statement
Used at the module level to set the default data type for variables, arguments passed to procedures, and the return type for Function and Property Get
procedures whose names start with the specified characters.
DefBool—Boolean is not supported by Hummingbird Basic.
DefByte—Byte is not supported by Hummingbird Basic.
DefCur—Currency.
DefDate—Date is not supported by Hummingbird Basic.
DefDb—Double.
DefInt—Integer.
DefLong—Long.
DefObj—Object is not supported by Hummingbird Basic.
DefVar—Variant.
DeleteSetting—Deletes a section or key setting from an application's entry in the Windows registry. Not supported by Hummingbird Basic. Supported
by Microsoft Visual Basic.
Dialog Methods and Statements
You can use Dialog methods and statements only when there is an active dialog box on the screen. In other words, only the method that was
associated with the active dialog box in the BeginDialog statement can call these methods.
DialogFunc—Implements the dynamic dialog capabilities. Not supported by Hummingbird Basic.
DlgControlld—Returns the numeric ID of a dialog box control.
DlgCount—Returns the number of dialog box items in the dialog box. Not supported by Hummingbird Basic.
DlgEnable (method)—Indicates whether a control is enabled or disabled.
DlgEnable (statement)—Enables or disables a dialog box control.
DlgEnd—Closes the dialog box.
DlgFocus—Sets the focus to a dialog box control.
DlgListBoxArray (method)—Returns the contents of a list box or combo box.
DlgListBoxArray (statement)—Sets the contents of a list box or combo box.
DlgName—Returns the field name. Not supported by Hummingbird Basic.
DlgNumber—Returns the number of the expression that returns a string result. Not supported by Hummingbird Basic.
DlgSetPicture—Changes the picture in a picture dialog box control for the current dialog box. Not supported by Hummingbird Basic.
DlgText (method)—Returns the text associated with a dialog box control.
DlgText (statement)—Sets the text associated with a dialog box control.
DlgType—Returns a string value indicating the type of expression that returns a numeric result. Not supported by Hummingbird Basic.
DlgValue (method)—Returns the value associated with a dialog box control.
DlgValue (statement)—Sets the value associated with a dialog box control.
DlgVisible (method)—Indicates whether a control is enabled or disabled.
DlgVisible (statement)—Shows or hides a dialog box control.
Error Handling Group
Err Object—The following is not supported by Hummingbird Basic. Can be found in Microsoft Visual Basic (simulates the occurrence of an error).
Err[.Number]—The error code for the last error event.
Err.Description—The description of the last error event.
Err.Source—The error-source file name of the last error event.
Err.HelpFile—The Help file name of the last error event.
Err.HelpContext—The Help context ID of the last error event.
Err.Clear—Clears the last error event.
Err.Raise—Raises an error event.
Err.LastDLLError—For 32-bit Windows, returns the error code for the last DLL call. For 16-bit Windows, always returns 0.
Error—Returns the error message that corresponds to the specified error code.
On Error—Specifies the location of an error-handling routine within the current procedure.
Resume—Resumes execution after an error-handling routine is finished.
File Group
ChDir—Changes the default directory for the specified drive. It does not change the default drive.
ChDrive—Changes the default drive.
Close—Closes a file, concluding input/output to that file.
CurDir—Returns the path (including the drive letter) of the current default directory for the specified drive.
Dir—Returns a string representing the name of a file, directory, or folder that matches a specified pattern or file attribute or the volume label of a drive.
EOF—Returns a value indicating whether the end of a file has been reached.
FileAttr—Returns information about an open file. Depending on the attribute chosen, this information is either the file mode or the operating system
handle.
FileCopy—Copies a file.
FileDateTime—Returns a string that indicates when a specified file was last modified.
FileLen—Returns a Long that indicates the length of the specified file.
FreeFile—Returns the lowest unused file number.
Get—Reads a variable from a file opened in Random or Binary mode.
GetAttr—Returns an integer representing the attributes of a file, directory, or folder.
Input (method)—Returns a string containing characters from a file opened in Input or Binary mode.
Input (statement)—Reads data from an open sequential file and assigns the data to variables.
Kill—Deletes files from a disk.
LineInput—Reads a single line from an open sequential file and assigns it to a string variable.
Loc—Returns a Long specifying the current read/write position within an open file.
Lock—Controls access by other processes to all or part of a file opened using the Open statement.
LOF—Returns a Long representing the size, in bytes, of a file opened using the Open statement.
MkDir—Makes a new directory.
Name—Renames a file.
Open—Opens a file or device for input or output.
Print—Writes display-formatted data to a sequential file.
Put—Writes a variable to a file opened in Random or Binary mode.
Reset—Closes all open disk files and writes any data still remaining in the operating-system buffer to disk.
RmDir—Removes an existing directory or folder.
Seek (method)—Returns a Long specifying the current read/write position within a file opened using the Open Statement.
Seek(statement)—Sets the position for the next read/write operation within a file opened using the Open statement.
SetAttr—Sets attribute information for a file.
UnLock—Controls access to an open file.
Write—Writes data to an open sequential file.
Flow Control Group
^—Exponentiation.
-,+—Unary minus and plus. The + operator is also used for string concatenation.
*,/—Numeric multiplication or division. For division, the result is a Double.
\—Integer division. The operand can be Integer or Long.
Mod—Modulus or Remainder. The operand can be Integer or Long.
&—String concatenation.
>,<,=,<=.>=,==—Numeric or string comparison.
Not—Unary Not.
And—Operands can be Integer or Long.
Or—Inclusive Or.
Xor—Exclusive Or.
Eqv—Equivalence.
Imp—Implication.
Is—Compares two object reference variables.
Like—Compares two strings.
Rem—Includes explanatory remarks in a program.
Settings Group
DeleteSetting—Deletes a section or key setting from an application's entry in the Windows registry.
GetAllSettings—Returns a list of key settings and their respective values from an application's entry in the Windows registry. Not supported by
Hummingbird Basic. Supported by Microsoft Visual Basic.
GetSetting—Returns a key setting value from an application's entry in the Windows registry. Not supported by Hummingbird Basic. Supported by
Microsoft Visual Basic.
Save Setting—Saves or creates an application entry in the Windows registry. Not supported by Hummingbird Basic. Supported by Microsoft Visual
Basic.
String Group
Asc—Returns an integer corresponding to the ANSI code of the first character in the specified string.
AscB—Returns the first byte. Not supported by Hummingbird Basic.
AscW—Returns the Unicode number.
Chr—Returns a one-char string for the ASCII value.
ChrB—Returns a single-byte ACSII string. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.
ChrW—Returns a single char Unicode string. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.
Format—Returns a formatted string of an expression based on a given format.
Hex—Returns the hexadecimal representation of a number, as a string.
InStr—Returns a variant (Long) specifying the position of the first occurrence of one string within another.
IntStrB—Returns the byte index specifying the position of the first occurrence of one string within another. Not supported by Hummingbird Basic.
LCase—Returns a string that has been converted to lowercase.
Left—Returns a variant (string) containing a specified number of characters from the left side of a string.
LeftB—Returns bytes containing a specified number of characters from the left side of a string. Not supported by Hummingbird Basic.
Len—Returns a Long containing the number of characters in a string.
LenB—Returns a byte containing the number of characters in a string. Not supported by Hummingbird Basic.
LTrim—Returns a copy of the source string, with all leading spaces removed.
Mid (method)—Returns a variant (string) containing a specified number of characters from a string.
Mid (statement)—Replaces a specified number of characters in a variant (string) variable with characters from another string.
MidB—Returns a byte containing a specified number of characters from a string. Not supported by Hummingbird Basic.
Oct—Returns a variant (string) representing the octal value of a number.
Right—Returns a string of a specified length copied from the right-most character of the string expression.
RightB—Returns a byte of a specified length copied from the right-most character of the string expression. Not supported by Hummingbird Basic.
Rtrim—Returns a copy of the source expression with all trailing spaces removed.
Space—Returns a variant (string) consisting of the specified number of spaces.
Str—Returns a string representation of a number.
StrConv—Returns a variant (string) converted as specified. Not supported by Hummingbird Basic. Supported by Microsoft Visual Basic.
String—Returns a variant (string) containing a repeating character string of the length specified.
Trim—Returns the string with leading and trailing spaces removed.
Ucase—Returns a copy of a string after all lowercase letters have been converted to uppercase.
Val—Returns the numeric value of the first number found in the specified string.
TimeDate Group
Dialog (method)—Displays a dialog box and returns a number for the button selected.
GetFilePath—Displays a dialog box and gets a file path from the user. The returned string is a complete path and file name. Not supported by
Hummingbird Basic.
InputBox—Displays a prompt in a dialog box, waits for the user to input text or click a button, and returns a string containing the contents of the text
box.
MsgBox (method)—Returns an integer value indicating which button the user selected.
MsgBox (statement)—Displays a message in a dialog box. If a message box requires buttons in addition to OK, use the MsgBox method instead.
Variable Info Group
IsArray—Returns a Boolean value indicating whether a variable is an array. Not supported by Hummingbird Basic. Supported by Microsoft Visual
Basic.
IsDate—Determines whether a value is a legal date.
IsEmpty—Returns a value that identifies whether a variant has been initialized.
IsError—Returns a Boolean value indicating whether a variable has been initialized. Not supported by Hummingbird Basic. Supported by Microsoft
Visual Basic.
IsMissing—Returns a Boolean value indicating whether an optional variant argument has been passed to a procedure. Not supported by
Hummingbird Basic. Supported by Microsoft Visual Basic.
IsNull—Returns a value that identifies whether an expression has resulted in a null value.
IsNumeric—Returns a value that signifies whether a variant is of numeric type.
IsObject—Returns a Boolean value indicating whether an identifier represents an object variable. Not supported by Hummingbird Basic. Supported by
Microsoft Visual Basic.
Lbound—Returns a Long containing the smallest available subscript for the indicating dimension of an array.
TypeName—Returns a string indicating the type of value stored. Not supported by Hummingbird Basic.
Ubound—Returns the upper bound of the subscript range for the specified array.
VarType—Returns the ordinal number representing the type of data currently stored in the variant. A string representation with a prefix of vb of the
value is used in WinWrap Basic but not in Hummingbird Basic. Instead, Hummingbird Basic includes the MsgBox Instruction/Method, String Data
Type, Attribute definition, Shell Method, Var Type, Weekday Method, and StrConv Method. It also uses the numerical values of the string
representation with prefix vb.
File Transfer Options
You can use this option to set file-transfer options. Remember that if you are using CMS, you must precede the options list with an open parenthesis.
Example SendFile "C:\CONFIG.SYS" "CONFIG SYS A1"
"( ASCII CRLF"
Related Topics
General Options
CMS-specific Options on Upload
TSO-specific Options on Upload
MUSIC-specific Options on Upload
General Options
The General Options group box lets you specify whether you are transferring text or binary files or whether you want to append the file you are
transferring to an existing file.
ASCII—Specifies ASCII to EBCDIC translation. Check this option when transferring files.
CRLF—This is the carriage return and line feed code. This code is necessary for viewing and editing text and source files, such as SCRIPT files. It is
not required for binary files. Check this option when transferring text files.
APPEND—Specifies that you want to add the file you are sending to the end of the host file. Omit this option if you want the file to replace an existing
host file.
Related Topics
CMS-specific Options on Upload
TSO-specific Options on Upload
MUSIC-specific Options on Upload
CMS-Specific Options on Upload
The following CMS-specific options let you set the record format.
RECFM x—The record format of the resulting CMS file where x = V (variable) or F (fixed). If you omit this option, the file will contain variable-length
records if you specify CRLF; otherwise, it will contain fixed-length records.
LRECL n—The record length of the resulting CMS file, where n is the logical record length. Include a record length only if you want the resulting file to
have a record length other than 80. If you omit this option, the file will have a record length of 80.
Related Topics
General Options
Xfer Options
TSO-specific Options on Upload
MUSIC-specific Options on Upload
TSO-Specific Options on Upload
The following TSO-specific options let you set transfer options:
(MEMBER)—If you are uploading the file to a partitioned data set, you can append the member name to the host file name.
/PASSWORD—If the data set contains a password, you can append it to the host file name.
RECFM( x )—The record format of the resulting TSO data set, where x = V (variable), F (fixed), or U (undefined). If you omit this option, the file will
contain variable-length records if you specified CRLF; otherwise, it will contain fixed-length records. Do not use this option with the MEMBER option.
LRECL( n )—The record length of the resulting TSO data set, where n = 1 through 132. If you omit this option, the record length is set at 80. Do not
use this option with the MEMBER option.
BLKSIZE( n )—The block size of the resulting TSO data set. If you omit this option, the block size will be the same as the record length. Do not use
this option with the MEMBER option.
SPACE(n1,n2) units—The amount of space to be allocated for the resulting TSO data set (assuming it is a new one), where:
• n1 = primary quantity in the units specified
• n2 = increment in the units specified (if the primary space is insufficient)
• units = AVBLOCKS, TRACKS, or CYLINDERS
The units parameter is optional. These values are similar to the values in the TSO ALLOCATE command. If you omit this option, you will get the space
for one block, with the length of the block being set by the BLKSIZE or LRECL options. Do not use this option with the MEMBER option.
Related Topics
General Options
Xfer Options
CMS-specific Options on Upload
MUSIC-specific Options on Upload
MUSIC-Specific Options on Upload
The following MUSIC-specific options let you set transfer options:
LRECL( n )—The record length of the resultant MUSIC save file where n = 1 through 32767. If you omit this option, the record length is set at 80.
RECFM( x )—The record format of the resultant MUSIC save file where x = V (variable), F (fixed), VC (variable compressed), or FC (fixed
compressed). If you omit this option, the file will have variable length records.
SPACE( n )—The primary space allocation for the resultant MUSIC save file where n = 1 through 8000 (Kb). If you omit this option, the default primary
allocation will be 40.
Related Topics
General Options
Xfer Options
CMS-specific Options on Upload
TSO-specific Options on Upload
3270/5250 Special Sequences
The format of the string is identical to the one used in the EHLLAPI, DDE, and VB interfaces. Listed below are special-character combinations. Keep in
mind that they are case-sensitive.This method returns 0 if all keys were processed successfully. The Keys method is not the most efficient method of
transferring large amounts of information to the screen buffer. For faster access, use the Fields.Text property.
@B Backtab
@C Clear
@D Delete
@E Enter
@F Erase EOF
@H 5250 Help
@I Insert
@J Next-Session
@L Cursor Left
@N Newline
@P 5250Print
@R Reset
@T Tab
@U Cursor Up
@V Cursor Down
@Z Cursor Right
@0 Home
@< Backspace
@1 PF1
@2 PF2
@3 PF3
@4 PF4
@5 PF5
@6 PF6
@7 PF7
@8 PF8
@9 PF9
@a PF10
@b PF11
@c PF12
@d PF13
@e PF14
@f PF15
@g PF16
@h PF17
@i PF18
@j PF19
@k PF20
@l PF21
@m PF22
@n PF23
@o PF24
@u Roll Up
@v Roll Down
@x PA1
@y PA2
@z PA3
@A@E Field Exit
@A@F Erase Input
@A@H Test Request
@A@J Cursor Select
@A@L Fast Left
@A@Q Attention
@A@- Field Minus
@A@+ Field Plus
@A@< Record Backspace
@A@Z Fast Right
@A@t Print Screen
@A@y Next Word
@A@z Prev Word
@S@x Duplicate
@S@y Field Mark
Related Topics
VT Special Sequences
VT Special Sequences
VT mode string formats are different to allow for special characters such as control characters and escape sequences. Enter Escape and binary codes
in C-style syntax using the backslash character (\). The system treats in-line spaces as part of the sequence.
The sequence \xhh lets you specify any ASCII character as a hexadecimal character code. For example, you can give the ASCII backspace character
as the normal C escape sequence (\b), or you can code it as \x08 hexadecimal.
You must use at least one digit for a hexadecimal escape sequence, but you can omit the second digit. Therefore, you can specify the hexadecimal
escape sequence for the backspace as either \x8 or \x08.
Related Topics
3270/5250 Terminal Modes
Entering Control Sequences
Entering Control Sequences
Related Topics
Irma Compatibility Mode
Configuration Tips
ConnectPS (1)
HostExplorer supports a modified version of the ConnectPS function, which lets you
dynamically create a new session to any host from EHLLAPI/WinHLLAPI. The calling sequence
is:
Function 1
Number
Related Topics
Special EHLLAPI and WinHLLAPI Flags
EHLLAPI Support in VT and NVT mode
EHLLAPI Development files
NVT Mode Functions
NVT Mode Exceptions
Related Topics
EHLLAPI Support in VT and NVT Mode
EHLLAPI Development Files
NVT Mode Functions
NVT Mode Exceptions
EHLLAPI Module
The EHLLAPI module (16-Bit=ACS3EHAP.DLL, 32-Bit=EHLLAP32.DLL, EHLAPI32.DLL) is
compatible with Attachmate® Extra! for Windows. Because most vendors’ products support
multiple HLLAPI DLLs, always choose Attachmate® Extra! for Windows EHLLAPI. Check the
Compatibility option to ensure that the emulator you are using is compatible. This interface is
available with both the 16-bit and the 32-bit versions of HostExplorer.
Note: If you choose an Irma Workstation for Windows setting, make sure to set the
Irma compatibility in the EHLLAPI dialog box.
Related Topics
EHLLAPI Development Files
EHLLAPI Calls
EHLLAPIConvertPosToRowCol EHLLAPIQuerySessions
EHLLAPIConvertRowColToPos EHLLAPIQuerySessionStatus
EHLLAPICopyFieldToString EHLLAPIReceiveFile
EHLLAPICopyOIA EHLLAPIRelease
EHLLAPICopyPS EHLLAPIReserve
EHLLAPICopyPSToString EHLLAPIReset
EHLLAPICopyStringToField EHLLAPISearchField
EHLLAPICopyStringToPS EHLLAPISearchPS
EHLLAPIDisconnect EHLLAPISendFile
EHLLAPIFindFieldPosition EHLLAPISendKey
EHLLAPIGetRowString EHLLAPISetCursorLocation
EHLLAPIGetVersion EHLLAPISetSessionParameters
EHLLAPIPause EHLLAPIWait
EHLLAPIQueryCursorLocation
Related Topics
EHLLAPI and WinHLLAPI DLL support
EHLLAPI Development Files
Visual Basic Interface
EHLLAPIConnect
This function is used to download a file from the host system. The valid options are ASCII,
CRLF, and APPEND. Separate all options with spaces, not commas.
Function EHLLAPIReceiveFile (strPCFileName As
String, idSession As String,
StrHostFilename As String, strOptions As
String) As Integer
Input StrPCFileName—contains the name of the
computerfile to receive the data.
IdSession—the session short-name identifier. It must
be a single, uppercase letter.
StrHostFileName—contains the name of the HOST
file to be downloaded.
StrOptions—contains the file-transfer options,
separated by spaces.
Example The following example transfers the host file PROFILE
EXEC to the computer file C:\PROF.AUT:
IRc% = EHLLAPIReceiveFile( "C:\PROF.AUT",
"A", "PROFILE EXEC",
"ASCII CRLF" )
EHLLAPIConvertPosToRowCol
EHLLAPIConvertRowColToPosition
This function is used to convert a row-and-column value to a presentation-space (PS) value.
Unlike other functions, the return code of this function is the new PS position.
Function EHLLAPIConvertRowColToPosition (idSession
As String, iRow As Integer, iColumn As
Integer) As Integer
Input IdSession—the session short-name identifier. It must
be a single, uppercase letter.
IRow—the row value between 1 and the maximum
number of rows (typically 24).
IColumn—the column value between 1 and the
maximum number of columns (typically 80).
Output IPos—the PS (1 to screen size) to be converted.
Example The following example converts the row-and-column on
session "A" value to a PS position:
IPos% = EHLLAPIConvertRowColToPosition(
"A", 24, 1 )
EHLLAPICopyFieldToString
This function copies a field (or portion of a field) to a Visual Basic (VB) string. Attributes are
translated to blanks, and no extended attributes are returned.
Function EHLLAPICopyFieldToString (strString As
String, iMaxLen As Integer, iPos As
Integer) As Integer
Input IPos—the presentation-space (PS) position (1 to the
maximum screen size) of the field to copy.
IMaxLen—the length of data to copy from iPos.
Output StrString—the VB string to receive the field content.
If the screen is unformatted, the result of this may be
up to 3564 bytes.
Example This example copies the contents of the field at position
81 for a maximum length of 80 bytes:
IRc% = EHLLAPICopyFieldToString(
strDest$, 80, 81 )
EHLLAPICopyOIA
This function copies the Operator Information Area (OIA) to a string. The contents of this string
are in the special EBCDIC format, as described in the EHLLAPI Programming Guide.
Function EHLLAPICopyOIA (strOIA As String) As
Integer
Output StrOIA—the VB string to receive the OIA string.
Length is always 103 bytes.
Example This example copies the current OIA into a string:
iRc% = EHLLAPICopyOIA( strOIA$ )
EHLLAPICopyPS
This function copies the entire presentation space (PS) to a Visual Basic (VB) string. Attributes
are translated to blanks, and no extended attributes are returned.
Function EHLLAPICopyPS (strScreen As String) As
Integer
Output StrScreen—the VB string to receive the screen
image. The screen sizes are Model 2 (24x80) 1920,
Model 3 (32x80) 2560, Model 4 (43x80) 3440, and
Model 5 (27x132) 3564.
Example This example copies the entire PS to a VB string:
iRc% = EHLLAPICopyPS( strPS$ )
EHLLAPICopyPSToString
This function copies a portion of the presenation space (PS) to a Visual Basic (VB) string.
Attributes are translated to blanks, and no extended attributes are returned.
Function EHLLAPICopyPSToString (strString As
String, iMaxLen As Integer, iPos As
Integer) As Integer
Input iPos—the PS position (1 to the maximum screen size)
to start copying.
iMaxLen—the length of data to copy from iPos.
Output StrString—the VB string to receive the partial screen
image.
Example This example copies the PS space at starting at position
1700 for 220 bytes:
iRc% = EHLLAPICopyPS( strPartial$, 220,
1700 )
EHLLAPICopyStringToField
This function copies a Visual Basic (VB) string to a 3270 field. Attributes are translated to
blanks, and no extended attributes are returned.
Function EHLLAPICopyStringToField (strString As
String, iPos As Integer) As Integer
Input StrString—the VB string to copy to the 3270 field.
iPos—the PS position (1 to the maximum screen size)
to which the information is copied.
Example This example copies a string to position 1761:
iRc% = EHLLAPICopyStringToField( "Hello
World", 1761 )
EHLLAPICopyStringToPS
This function copies a string to the presentation space (PS) at the location specified. Attributes
are translated to blanks, and no extended attributes are returned.
Function EHLLAPICopyStringToPS (strString As
String, iPos As Integer) As Integer
Input StrString—the Visual Basic (VB) string to copy to the
PS.
iPos—the PS position (1 to the maximum screen size)
to copy the info to.
Example This example copies a string to position 1761:
iRc% = EHLLAPICopyStringToPS( "Hello
World", 1761 )
EHLLAPIDisconnect
This function disconnects the Visual Basic (VB) interface from a session.
Function EHLLAPIDisconnect (idSession As String) As
Integer
Input IdSession—the session short-name
identifier. It must be a single, uppercase
letter.
Example The following example disconnects from session "A":
iRc% = EHLLAPIDisconnect( "A" )
EHLLAPIFindFieldPosition
This function is used to get the presentation-space (PS) position of the previous or next
protected or unprotected field. The search types are defined in the Declarations section of the
HLLCALLS.BAS module.
Function EHLLAPIFindFieldPosition (strSearchType As
String, iPos As Integer) As Integer
Input StrSearchType—the string-search type, which
corresponds to the direction and field type.
iPos—the PS position (1 to the maximum screen size)
to begin the search.
Output iPos—the PS position of the field.
Example The following example searches for the next unprotected
field starting at position 81:
iPos% = 81
iRc% = EHLLAPIFindFieldPosition(
EHLLAPI_NEXTUNPROT, iPos)
EHLLAPIGetRowString
This function (which is not a true EHLLAPI call) is used to retrieve the contents of a specific row
in the PS. Attributes are translated to blanks and no extended attributes are returned.
Function EHLLAPIGetRowString (idSession As String,
strString As String, iRow As Integer) As
Integer
Input IdSession—the session short-name identifier. It must
be a single, uppercase letter.
iRow—the row value between 1 and the maximum
number of rows.
Output StrString—the VB string to receive the contents of the
row.
Example The following example retrieves the contents of row 23
into a VB string:
iRc% = EHLLAPIGetRowString( "A", strRow$,
23)
EHLLAPIGetVersion
This function is used to retrieve the version of the EHLLAPI interface.
Function EHLLAPIGetVersion (hiVer As Integer, loVer
As Integer) As Integer
Output HiVer—the high-order digit of the version.
LoVer—the low-order digit of the version.
Example The following example retrieves the current version of
the EHLLAPI interface:
iRc% = EHLLAPIGetVersion( hiVer%, loVer% )
EHLLAPIPause
EHLLAPIQueryCursorLocation
EHLLAPIQueryFieldAttribute
This function is used to get the attribute of the field at the location specified.
Function EHLLAPIQueryFieldAttribute (iPos As
Integer, iAttr As Integer) As Integer
Input iPos—the presentation-space (PS) position to search
for the field attribute.
Output iAttr—the 3270 attribute returned.
Example The following example retrieves the attribute at position
1920:
iRc% = EHLLAPIQueryFieldAttribute( 1920,
iAttr% )
EHLLAPIQuerySessions
This function returns a string containing the short names of all available sessions. For example,
if the system returns an "AC" string, sessions "A" and "C" are available.
Function EHLLAPIQuerySessions (strAllSessions As
String) As Integer
Output StrAllSessions—the VB string to receive the session
short names.
Example The following example retrieves the list of sessions.
iRc% = EHLLAPIQuerySessions( strAll$ )
EHLLAPIQuerySessionStatus
This function returns the session long name and the session screen size.
Function EHLLAPIQuerySessionStatus (idSession As
String, strLongName As String, IRows As
Integer, iColumns As Integer) As Integer
Input IdSession—the session short-name identifier. It must
be a single, uppercase letter.
Output StrLongName—contains the session long name (up to
8 characters).
IRows—contains the number of rows in the presentation-
space (PS).
IColumns—contains the number of columns in the PS.
Example The following example retrieves the info for session "A".
iRc% = EHLLAPIQuerySessionStatus( "A",
strLongName$, iRows%, iCols%)
EHLLAPIReceiveFile
This function is used to download a file from the host. Valid options are ASCII, CRLF, and
APPEND. Separate all options with spaces, not commas.
Function EHLLAPIReceiveFile (strPCFileName As
String, idSession As String,
StrHostFilename As String, strOptions As
String) As Integer
Input StrPCFileName—contains the name of the computer
file to receive the data.
IdSession—the session short-name identifier. It must
be a single, uppercase letter.
StrHostFileName—contains the name of the HOST
file to be downloaded.
StrOptions—contains the file-transfer options,
separated by spaces.
Example The following example transfers the host file PROFILE
EXEC to the computer file C:\PROF.AUT:
iRc% = EHLLAPIReceiveFile( "C:\PROF.AUT",
"A", "PROFILE EXEC", "ASCII CRLF" )
EHLLAPIRelease
This function is used to release the 3270 keyboard. Make this call only after a call to
EHLLAPIReserve.
Function EHLLAPIRelease () As Integer
Example The following example releases the keyboard:
iRc% = EHLLAPIRelease()
EHLLAPIReserve
This function is used to reserve the 3270 keyboard. This prevents the user from accessing the
3270 session from the keyboard.
Function EHLLAPIReserve () As Integer
Example The following example reserves the keyboard:
iRc% = EHLLAPIReserve()
EHLLAPIReset
This function is used to reset the EHLLAPI interface back to the default values.
Function EHLLAPIReset () As Integer
Example The following example resets the interface:
iRc% = EHLLAPIReset()
EHLLAPISearchField
This function is used to search a field for a given string.
Function EHLLAPISearchField (strString As String,
iPos As Integer) As Integer
Input StrString—the Visual Basic (VB) string to search.
iPos—the presentation-space (PS) position to begin the
search.
Output iPos—the PS position of the text, if found (if iRc =0).
Example The following example searches for the string "More..."
in the field, starting at position 1841:
iPos% = 1841
iRc% = EHLLAPISearchField( "More...",
iPos% )
EHLLAPISearchPS
This function is used to search the entire presentation space (PS) for a given string.
Function EHLLAPISearchPS (strString As String, iPos
As Integer) As Integer
Input StrString—the Visual Basic (VB) string to search.
Output iPos—the PS position of the text, if found (if iRc = 0).
Example The following example searches for the string "CP
READ":
iRc% = EHLLAPISearchField( "More...",
iPos% )
EHLLAPISendFile
This function is used to upload a file to the host. Common valid options are ASCII, CRLF, and
APPEND. Other options are specific to the operating system. Separate all options with spaces,
not commas.
Function EHLLAPISendFile (strPCFileName As String,
strSessionID As String, StrHostFilename As
String, strOptions As String) As Integer
Input StrPCFileName—contains the name of the computer
file to upload.
IdSession—the session short-name identifier. It must
be a single, uppercase letter.
StrHostFileName—contains the name of the HOST
file to receive the data.
StrOptions—contains the file-transfer options,
separated by spaces.
Example The following example transfers the computer file
C:\AUTOEXEC.BAT to the host file PROFILE EXEC:
iRc% = EHLLAPIReceiveFile(
"C:\AUTOEXEC.BAT", "A", "PROFILE EXEC",
"ASCII CRLF" )
EHLLAPISendKey
This function is used to send a sequence of keystrokes to the session. Although you can
transfer data into the session using the CopyString functions, only this function allows you to
press action keys such as Enter and PFxx.
Function EHLLAPISendKey (strKeyString As String) As
Integer
Input StrKeyString—the VB string that contains the list of
keys to press.
Example The following example types the string "LOGIN PIERRE"
and then presses the Enter key:
iRc% = EHLLAPISendKey( "LOGIN PIERRE@E" )
Related Topics
Creating Special Key Strings
EHLLAPISetCursorLocation
EHLLAPISetSessionParameters
Related Topics
Valid Options
Valid Options
You can use the following options when setting current session parameters:
ATTRB—Return attributes in Copy functions.
NOATTRB—Convert attributes to blanks.
EAB—Return extended attributes in functions. Although supported by EHLLAPI, the current VB
functions currently disable this option.
NOEAB—Do not return extended attributes.
XLATE—Translate all unknown EBCDIC data to blanks.
NOXLATE—Do not translate any PS data.
AUTORESET—Unlock the keyboard before executing any EHLLAPISendKey function.
NORESET—Do not unlock the keyboard before executing EHLLAPISendKey.
SRCHALL—Search the entire PS space for strings.
SRCHFROM—Search from the specified position for strings.
SRCHFRWD—Search forward for a string.
SRCHBKWD—Search backward for a string.
FPAUSE—Insert a full pause for EHLLAPIPause.
IPAUSE—Insert an interruptible pause (if the PS is updated) for EHLLAPIPause.
QUIET—Perform Quiet mode file transfers.
NOQUIET—Perform a normal file transfer (a dialog box appears).
ESC=x—Set the EHLLAPISendKey escape character. The default value is @.
TIMEOUT=x—Specify the timeout for a file transfer, for example:
0—None
1—30 seconds
2—1 minute
3—1.5 minutes
4—2 minutes
5—2.5 minutes
6—3 minutes
7—3.5 minutes
8—4 minutes
9—4.5 minutes
J—5 minutes
K—5.5 minutes
L—6 minutes
M—6.5 minutes
N—7 minutes
EHLLAPIWait
This function is used to wait for an event to occur on the host session. The function can check
the status, wait for a certain amount of time, or wait indefinitely for the host PS to change. The
wait types are defined in the Declarations section of the HLLCALLS.BAS module. Use the
EHLLAPISetSessionParameters call to set the timeout used by the EHLLAPI_TWAIT option.
Function EHLLAPIWait (iWaitType As Integer) As
Integer
Input iWaitType—the wait type as defined in the
Declarations section of HLLCALLS.BAS.
Example The following example checks if the PS updates:
iRc% = EHLLAPIWait( EHLLAPI_NWAIT )
Related Topics
Using the Visual Basic Interface
Visual Basic Return Codes
Start Minimized
When HLLAPI spawns a new session automatically by starting a profile, that window is kept
hidden by the emulator because it is under HLLAPI control.
To force newly spawned sessions in minimized mode (iconized and visible), add the following
line to the EHLLAPI.Settings section in the HOSTEX.INI file:
[EHLLAPI.Settings]
Start Minimized = On
Auto Unload
When you issue a DisconnectPS, HLLAPI terminates that terminal session automatically if the
session was spawned by HLLAPI.
To prevent HLLAPI from terminating the session, add the following line to the
EHLLAPI.Settings section in the HOSTEX.INI file:
[EHLLAPI.Settings]
Auto Unload = Off
Yield Wait
By default, the functions that require the DLL to wait for some event to complete (such as Wait,
Pause, Send File, and Receive File) use a PeekMessage loop in order to let all applications
process messages. However, you can set a loop call to yield the wait.
To set a loop call, set the following line in the EHLLAPI.Settings section of the HOSTEX.INI
file:
[EHLLAPI.Settings]
Yield Wait = On
Return Extra Session Info
To set the last byte of the 18-byte structure:
1. 1. 1. Add one of the following lines to the EHLLAPI.Settings section in the
HOSTEX.INI file:
'I' — Idle - Configured but not loaded and not connected.
'R' — Ready - Session connected to host but not connected to
HLLAPI.
'C' — Connect - Session connected to host and connected to
HLLAPI (Connect PS).
This sets the last byte of the 18-byte structure, normally reserved to a flag providing this
information.
2. 2. 2. Add the following lines to the EHLLAPI.Settings section in the HOSTEX.INI
file:
[EHLLAPI.Settings]
Return Extra Session Info = On
This enables this extra flag byte.
Note: By default, the HLLAPI standard interface does not provide any mechanism to
know whether a session is: connected (with HLLAPI), loaded and connected to a host
but not to HLLAPI, or simply configured and not connected at all.
Auto Sync
The SendKey function (in its current design) does not allow for automatic pacing when you
press AID generating keys. Therefore, if you want to send two sets of strings in a row, such as
XYZ@E, you must place a WAIT(TWAIT) command between them. You can instruct HLLAPI to
wait until the keyboard unlocks before returning from the SendKey function when you press an
AID key. This extension provides an automatic synchronization with the host and simplifies your
HLLAPI application.
To enable Auto Sync:
1. 1. 1. Enable the Type Ahead feature in the profile assigned to the HLLAPI short name.
You can set the Type Ahead feature by double-clicking the Session folder and clicking
General in the Session Profile dialog box.
2. 2. 2. Add the following line to the EHLLAPI.Settings section in the HOSTEX.INI
file:
[EHLLAPI.Settings]
Auto Sync = On
Convert Nulls
The CopyPS and CopyPSToString functions normally convert 3270/5250 Nulls to ASCII blanks
when you copy text.
To prevent HLLAPI from converting nulls, add the following line to the EHLLAPI.Settings
section in the HOSTEX.INI file.
[EHLLAPI.Settings]
Convert Nulls = Off
Note: If you disable the Convert Nulls HLLAPI feature, you must use the STRLEN
option to use explicit string lengths or change the EOT character from the default
value of Null.
Related Topics
Special EHLLAPI and WinHLLAPI Flags
EHLLAPI Development Files
NVT Mode Functions
NVT Mode Exceptions
Related Topics
Special EHLLAPI and WInHLLAPI Flags
EHLLAPI Development Files
EHLLAPI Support in VT and NVT Modes
NVT Mode Exceptions
The following functions perform differently while in NVT mode. The host may enter and exit NVT
mode during your session, so do not assume that you will be in NVT mode only at the beginning
of a session. Your application must be able to handle both modes.
Copy OIA (13)—The return value in the data_string is slightly different to let you determine
whether the terminal is in NVT mode. Byte 82, labeled On-line and screen ownership (group 1),
has the 0x01 bit on if the terminal is in NVT mode. This bit is normally reserved.
Copy Presentation Space (5) and Copy Presentation Space to String (8)—The return code
in the ps_position value contains a 101 (decimal) if the terminal is in NVT mode. If the terminal
is in 3270 mode, the standard values of 0, 1, 4, 5, and 9 apply.
Query Host Update (24)—The return code in the ps_position value contains a 101 (decimal) if
the terminal is in NVT mode and the PS has not changed. It contains a 102 (decimal) if the
terminal is in NVT mode and the PS has changed since the last time the query host was
updated. If the terminal is in 3270 mode, the standard values of 0, 1, 8, 9, 21, 22, and 23 apply.
Query Session Status (22)—The return value in the data_string is slightly different to let you
determine whether the terminal is in NVT mode. Byte 11, which provides the session
characteristics, has the 0x01 bit on if the terminal is in NVT mode. This bit is normally reserved.
Send Key (3)—This function does not support any of the standard keyboard mnemonics except
@E–(carriage return) and @D–(backspace).
Note: Do not send more than one carriage return per operation. Use the Query Host
Update between CRs to synchronize with the host.
Related Topics
Special EHLLAPI and WinHLLAPI Flags
EHLLAPI Development Files
EHLLAPI Support in VT and NVT Modes
Related Topics
Special HLLAPI and WinHLLAPI Flags
EHLLAPI Support in VT and NVT Modes
WinHLLAPI Development Files
Configuration Tips
HostExplorer enables you to associate a PS short name with a specific profile. This enables
HLLAPI to spawn (start) a new session when you issue a ConnectPS command. Issuing a
ConnectPS command lets you start your HLLAPI application without pre-loading the emulator.
To associate a PS short name with a profile, select the Save Profile option from the File menu.
The Save Profile dialog box lets you change the HLLAPI short name.
If you want the emulator to automatically assign valid HLLAPI letters to new sessions, add the
following line to the System.Settings section in the global hostex.ini file, located in the
HostEx directory where the user files are stored on your machine. For the appropriate directory
path for your platform, refer to the list of the default locations for the user files.
[System.Settings]
HLLAPI Auto Assign = On
In the event that HLLAPI automatically loads the emulator, it tries to spawn hostex32.exe. If
this is not the program name or if the program name is not in the path, the Windows directory or
Windows System directory specifies the program name.
To specify the program name, add the following line to the hostex.ini file in the HostEx
directory where the user files are stored on your machine.
[EHLLAPI.Settings]
Auto Start Name = [path]programname.exe
Note: The user specifies the user directory when you install HostExplorer.
WinHLLAPI Module
The WinHLLAPI module (WHLLAPI.DLL) fully implements Windows HLLAPI version 1.1 as
defined in the Windows Open Services Architecture. The documentation (WHLLAPI.HLP) and
development files (WHLLAPI.H, WHLLAPI.LIB, WHLLAP32.LIB) are installed on your system.
This interface is available with both the 16-bit and 32-bit versions of HostExplorer.
Make sure that the appropriate DLL file (ACS3EHAP.DLL/EHLLAP32.DLL, HLLAPI.DLL, or
WHLLAPI.DLL/WHLLAP32.DLL) is in your path by copying the appropriate DLL to your client
application directory. This allows Windows to load the DLL when you run your client application.
Note: You may have to rename the 32-bit WHLLAP32.DLL to WHLAPI32.DLL to be
compatible with the Attachmate® file name.
Related Topics
EHLLAPI Development Files
What is DDE?
You can use Dynamic Data Exchange (DDE) to carry out interprocess communication. It allows
programs such as Excel, Word for Windows, and Visual Basic to interact with the 3270
emulator. The DDE interface enables you to create new terminal sessions, enter data, run
macros, retrieve screens, and transfer files.
Unlike the EHLLAPI interface, a low-level programmatic interface that uses C or C++, the DDE
interface in HostExplorer is designed to be used with high-level languages such as Visual Basic
or Word Basic. For example, using DDE, you can write macros in Word for Windows that log
you into the mainframe, transfer a file to the mainframe, then send the file automatically as e-
mail.
The DDE interface included with HostExplorer is almost completely compatible with the
Attachmate® EXTRA! for Windows DDE interface. This compatibility reduces the amount of
work involved when you move applications to HostExplorer.
Related Topics
How Does DDE Work?
How Does DDE Work?
DDE transfers information in conversations. A conversation occurs between a client application
and a server application, such as HostExplorer.
When HostExplorer is loaded, it broadcasts to DDE that its services are available. Then a client
application, such as Word for Windows, can initiate a conversation with HostExplorer. The
procedure is similar to a telephone conversation: you must call a friend in order to have a
conversation. Once the client and server applications begin a conversation, the client
application can request information, run macros, press keys, and transfer files.
A client application can issue the following four types of DDE messages:
Advise
Execute
Poke
Request
To have a DDE conversation, you need the following fields:
Application Name
Topic
Related Topics
System Topic
Advise Message
You can use the Advise message to receive feedback about when certain events take place,
such as updates to cursor movement or presentation space. In DDE terminology, these updates
are known as warm links and hot links. They allow your application to receive updated
information when a specified event takes place.
Hot links update your client information automatically whenever changes occur in HostExplorer,
whereas warm links require additional steps to update your client information. Hot links are used
to provide continuous, up-to-date information.
Example The following function requests feedback
when the cursor changes position.
Word for Windows Insert a field in your document by
pressing the INSERT FIELD key, then
Ctrl+F9.
Type the DDE command below for a
warm or hot link. Do not type the curly
brackets; they are simply the field-
delimiter characters.
{ dde HOSTEX session name item
name }
{ ddeauto HOSTEX session name
item name }
Example { dde HOSTEX A Cursor}
Related Topics
Advise Commands
Execute Message
You can use an Execute message to instruct HostExplorer how to perform commands, such as
running macros and transferring files. An Execute message does not return any information.
Examples The following function pauses the system
for 1.5 seconds. The variable ChanNum
represents the DDE conversation ID.
Word for Windows DDEExecute ChanNum, "[pause(3)]"
Microsoft Excel =EXECUTE( A1, "[pause(3))]" )
Related Topics
Execute Commands
Poke Message
You can use a Poke message to send information to the DDE server HOSTEX. The Poke
message lets you send information to identify a new cursor position, press keys, and set the
search string. Poke does not return any information.
Examples The following function sets the
cursor position to position 1761. The
variable ChanNum represents the
DDE conversation ID.
Word for Windows DDEPoke ChanNum, "Cursor",
"1761"
Microsoft Excel 4.0 =POKE( A1, "Cursor", B1 )
Microsoft Excel 5.0 and You can poke only data that exists in
7.0 a cell.
DDEPoke ChanNum," Cursor
",Range("a1")
If you want to Poke data in a text
string, you must use the v4.0
macros.
Related Topics
Poke Commands
Request Message
You can use a Request message to retrieve information from the DDE server HOSTEX. The
Request message lets you retrieve information such as the screen format, cursor position, and
presentation space. Request messages retrieve information only. They do not perform any
actions on the emulator or system.
Examples The following function requests the third
line of data from the presentation space.
The variable ChanNum represents the
DDE conversation ID.
Word for Windows Data$ = DDERequest( ChanNum,
"P160L80" )
Microsoft Excel =REQUEST( A1, "P160L80" )
Related Topics
Request Commands
Related Topics
Execute Commands
Poke Commands
Request Commands
Execute Commands
You can issue the following commands to a session topic:
Allow Emulator Updates—Enables HostExplorer to update the 3270 window when it receives
information from the host.
Block Emulator Updates—Prevents HostExplorer from updating its window when it receives
information from the host.
End Session—Terminates the current terminal session. This command is identical to selecting
Close Session from the File menu in HostExplorer.
Pause—Pauses for the specified time in half-second increments. The following example pauses
for 2 seconds: [pause(4)]
Receive File—Downloads the specified file from the host to your computer. This requires
command syntax.
Send File—Uploads the specified file to the host from your computer. This requires command
syntax.
Run Macro—Runs the specified macro. The following example runs the macro dothis: [run
macro(dothis)]
Wait Unlock—Pauses for the specified time in half-second increments until the 3270 keyboard
is unlocked. If the keyboard is already unlocked, the function returns immediately. The following
example pauses for up to three seconds: [Wait Unlock(6)]
Related Topics
Advise Commands
Poke Commands
Request Commands
Receive File command syntax
Command Syntax The command syntax for TSO and MUSIC is:
[receive file(PC_filename
host_filename transfer_options)]
The command syntax for CMS and CICS is:
[receive file(PC_filename
host_filename ( transfer_options
))]
Examples TSO or MUSIC
[receive file(c:\martin
host.martin ASCII CRLF)]
CMS
[receive file(c:\vincent.txt
vincent text ( ASCII CRLF)]
CICS
[receive file(c:\test.txt test (
ASCII CRLF))]
Poke Commands
You can send the following items to a Session topic:
Cursor—Sets the cursor position to the new value in the presentation space. The syntax for the
value field is either nnn or Fnn[U/P]. nnn sets the position to the numeric value specified
whereas Fnn[U/P] sets the position to the first position of the specified field. For additional
information, see the Cursor example.
EscChar—Sets the escape character used for sending keys. The default escape character is
'@'.
Keystroke—Presses a collection of keystrokes. The string can contain up to 255 characters.
The string format for keys is in HLLAPI mnemonic format. This allows you to enter normal text
and press 3270 action keys such as Home, Pfx, and Clear. For additional information, see the
Keystroke example.
PS—Inserts the string into the entire presentation space. In this mode, data over protected
fields is ignored. Therefore, you can retrieve the entire PS, update certain portions, then replace
the entire PS.
Pnnnn[F/Lmmm]—Inserts the string into a specific position in the presentation space. Data is
inserted until the end of the field or end of the data string, whichever comes first.
P100—Inserts the string at position 100 until the end of field.
P100F—Inserts the string in the field that contains position 100.
P100L20—Inserts the string at position 100 for a maximum length of 20 characters,
regardless of the length of the string.
Fnn[U]—Inserts the string into a specific field in the presentation space. Data is inserted until
the end of the field or end of the data string, whichever comes first.
F2—Inserts the string starting in the first position of the second field.
F2U—Inserts the string starting in the first position of the second unprotected field.
Rxx—Inserts the string into the specified row in the presentation space. Data is written only into
unprotected fields.
R2—Inserts the string into the second row of the presentation space.
Search—Sets the search string for the Search request command.
Related Topics
Advise Commands
Execute Commands
Request Commands
Cursor Example
The following is a Cursor example:
"1"—sets the cursor to position 1.
"F2"—sets the cursor to the first position of the second field in the presentation space.
"F2U"—sets the cursor to the first position of the second unprotected field in the
presentation space.
"F2P"—sets the cursor to the first position of the second protected field in the presentation
space.
Keystroke Example
The following is a Keystroke example:
"LOGIN PIERRE@E"
Request Commands
You can request the following items from a Session topic:
Columns—Returns the number of columns in the current presentation space.
Cursor—Returns the current cursor location in the presentation space. 1 is the first position.
Emulator—Returns the window handle of the window displaying the presentation space.
File Transfer— Returns the short name of the presentation space and either 0 if no transfer is
occurring or 1 if a transfer is occurring. For additional information, see the File Transfer
example.
Keyboard—Returns the status of the 3270 keyboard. Valid return values are Clear and Locked.
Model—Returns the 3270 model for the presentation space. Valid values are 2, 3, 4, and 5.
OIA—Returns the operator information area (OIA) in ASCII format.
Power—Always returns “On”.
Profile Name—Returns the name of the profile used for the presentation space; for example,
DEFAULT.
Rows—Returns the number of rows in the current presentation space.
Search—Returns the position of the search string in the presentation space (PS). The search
string is defined using the POKE command.
PS—Returns the entire contents of the PS. The entire space is returned as one string. Nulls are
converted to blanks. Therefore, if you are using a Model 2 terminal (24x80), a string of 1920
bytes is returned.
Pnnnn[F/Lmmm]—Returns a portion of the PS. Nulls are converted to blanks. For additional
information, refer to the Pnnnn[F/Lmmm] example.
Fnn[U/P]—Returns the contents of the field specified. Nulls are converted to blanks. For
additional information, refer to the Fnn example.
Rnn—Returns the contents of the specified row. Nulls are converted to blanks.
R2—Returns the contents of the second row in the presentation space. The length is dependent
on which 3270 model you are using. Models 2, 3, and 4 return 80 characters, whereas a model
5 returns 132 characters.
Related Topics
Advise Commands
Execute Commands
Poke Commands
File Transfer Example
The following is a File Transfer example:
A 1—Transfer occurring on session A.
Pnnnn[F/Lmmm] Examples
The following list consists of Pnnnn[F/Lmmm] examples:
P100—Returns the presentation space from position 100 to the end of the field containing
position 100.
P100F—Returns the entire field that contains position 100.
P100L20—Returns data from position 100 for a length of 20 characters regardless of field
positions.
Fnn Examples
The following list consists of Fnn examples:
F2— Returns the contents of the second field (unprotected or protected) in the presentation
space.
F2U—Returns the contents of the second unprotected field in the presentation space.
F2P—Returns the contents of the second protected field in the presentation space.
DDE Terminology
In DDE, the screen is called the presentation space (PS). When copying information to or from
the PS, the indices used always begin at 1 and end at the last value of the PS. For example, a
24x80 screen has 1920 addressable positions, which range from 1 to 1920.
Some of the requests return multiple items back to you in a single string. Each item is delimited
using the carriage return byte (“\r” in standard C syntax), value 0x0D, or 13 decimal.
DDE lets you start a conversation with:
• HostExplorer
• Word for Windows
• Microsoft Excel
Related Topics
How does DDE work?
DDE Samples
System Topic
Sub Main
On Error Goto ErrorHandler
crlf$ = Chr$(13) + Chr$(10)
iChanNum = DDEInitiate("HOSTEX", "A")
iNumRows = Val(DDERequest$(iChanNum, "Rows"))
iNumCols = Val(DDERequest$(iChanNum, "Columns"))
If iChanNum Then
For row = 1 To iNumRows
request$ = "P" + Mid$(Str$(1 + ((row - 1) * iNumCols)), 2) + "L" +
LTrim$(Str$(iNumCols))
Data$ = Data$ + DDERequest$(iChanNum, request$) + crlf$
Next row
Insert Data$
Else 'could not open session
MsgBox "Could not open DDE Session with program."
End If
ErrorHandler:
DDETerminate iChanNum
End Sub
Related Topics
DDE Terminology
System Topic
You can use the System Topic item to locate information about the system. For example, you
can use the item to see which sessions are currently in use. To request any of the following, use
the Request command.
The System Topic supports the following:
Formats—Returns the name of the DDE formats supported. Always returns "Text".
Profiles—Returns the list of defined profile names. Each item is separated by a carriage return
character (0x0D).
Session Started—Returns the topic letter for the session last started with the Start Session
EXECUTE command.
SysItems—Returns the list of system items that you can request. Each item is separated by a
carriage return character (0x0D).
Topics—Returns the list of system topics that are currently available for conversations. Each
item is separated by a carriage return character (0x0D).
Related Topics
System Topic commands
What is DDE?
Related Topics
System Topic
What is DDE?
Start Session Example
The following is a Start Session example:
[Start Session(Profile_Name.Profile_Folder [,IP Host/Gateway Name [,IP
Port] ])]
Default Locations for User Files
Hummingbird Setup Wizard installs per-user files (current user and "All Users") to various
directories depending on the Windows platform.
For Windows NT/2000/XP platforms, the wizard prompts you to choose between installing the
product on the computer for the currently logged in user, or for all users. For the current user,
shortcuts are created in the appropriate user profile folder, along with copies of all other user
files. For all users (anyone who uses the computer), shortcuts are created in the "All Users"
profile folder, along with copies of all other user files.
The following are the default locations for user files:
Operating Per-User Files—Default
System Location (Current User)
Windows C:\Windows\Application
98/Me Data
Windows C:\Windows\Profiles\
98/Me %USERNAME%\Application
(user Data
profiles
enabled)
Windows C:\Winnt\Profiles\
NT 4.0 %USERNAME%\Application
Data
Windows C:\Windows\Application
98/Me Data
Windows C:\Windows\Profiles\
98/Me All Users\Application
(user Data
profiles
enabled)
Windows C:\Winnt\Profiles\All
NT 4.0 Users\Application Data
Related Topics
Properties of the Terminal Objects
Method: IHETerminal::ChooseTerminalFont
BSTR bstrProfileName =
SysAllocString(OLESTR("C:\\aix.hep"));
pISession-
>put_ProfileName(bstrProfileName);
pISession->Load();
SysFreeString(bstrProfileName);
Method: IHETerminal::Connect
Method: IHETerminal::Disconnect
Method: IHETerminal::EditSessionProperties
BSTR bstrProfileName =
SysAllocString(OLESTR("C:\\aix.hep"));
pISession->put_ProfileName (bstrProfileName);
pISession->Load();
SysFreeString(bstrProfileName);
short iRetval;
pITerminal->EditSessionProperties (&iRetval);
Related Topics
Methods of the Terminal Objects
Property: IHETerminal::ConnectBy
This property returns or sets a value indicating the method of connection (connection protocol)
between the client machine and the host. By default, the property is set to
HOSTEX_CONNECT_BY_TELNET.
Basic Syntax HOSTEX_CONNECT_BY =
HETerminal.ConnectBy
HETerminal.ConnectBy =
HOSTEX_CONNECT_BY
C++ Syntax HRESULT
IHETerminal::get_ConnectBy([out,
retval] HOSTEX_CONNECT_BY *pVal);
HRESULT
IHETerminal::put_ConnectBy([in]
HOSTEX_CONNECT_BY * newVal);
Parameters pVal—The returned value, specifying the
connection method.
Related Topics
HOSTEX_CONNECT_BY Data Type
Property: IHETerminal::Connected
This property returns or sets a value indicating the current connection status.
Basic Boolean = HETerminal.Connected
Syntax
HETerminal.Connected = Boolean
HRESULT IHETerminal::put_Connected([in]
VARIANT_BOOL * newVal)
Parameters pVal—A returned value of VARIANT_TRUE indicates
that you are currently connected to the host. A
returned value of VARIANT_FALSE indicates that you
are currently disconnected from the host.
BSTR bstrProfileName =
SysAllocString(OLESTR("C:\\aix.hep"));
pISession-
>put_ProfileName(bstrProfileName);
pISession->Load();
SysFreeString(bstrProfileName);
//connect
VARIANT_BOOL bConnected = TRUE;
pITerminal->put_Connected(bConnected);
Property: IHETerminal::Host
Terminal.Connected = True
bstrHost=
SysAllocString(OLESTR("sunset.cs.concordia.ca"));
pITerminal->put_Host(bstrHost);
Property: IHETerminal::Parser
Property: IHETerminal::Session
This property returns or sets the Session object which contains all the methods and properties
for the session.
Basic Dispatch = HETerminal.Session
Syntax
HETerminal.Session = IDispatch
HRESULT IHETerminal::put_Session([in]
IDispatch * newVal);
Parameters pVal—The returned address of the Session object.
BSTR bstrProfileName =
SysAllocString(OLESTR("C:\\aix.hep"));
pISession-
>put_ProfileName(bstrProfileName);
pISession->Load();
SysFreeString(bstrProfileName);
Property: IHETerminal::SilentConnect
This property returns or sets a value indicating whether HostExplorer displays a progress dialog
box while connecting to the host.
Basic Boolean = HETerminal.SilentConnect
Syntax
HETerminal.SilentConnect = Boolean
C++ Syntax HRESULT
IHETerminal::get_SilentConnect([out,
retval] VARIANT_BOOL * pVal);
HRESULT
IHETerminal::put_SilentConnect([in]
VARIANT_BOOL * newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer connects your machine
to the host without opening a progress dialog box. A
returned value of VARIANT_FALSE indicates that a
progress dialog box opens when HostExplorer
connects your machine to the host.
newVal—A value of VARIANT_TRUE indicates that
HostExplorer connects your machine to the host
without opening a progress dialog box. A value of
VARIANT_FALSE indicates that a progress dialog
box opens when HostExplorer connects your
machine to the host.
Basic Dim bVal As Boolean
Example bVal = Terminal.SilentConnect
Property: IHETerminal::TCPPort
This property returns or sets the TCP/IP port for the connection.
Basic Syntax Integer = HETerminal.TCPPort
HETerminal.TCPPort = Integer
HRESULT IHETerminal::put_TCPPort([in]
short newVal);
Parameters pVal—The returned value indicating the TCP/IP
port for the connection.
Terminal.Connected = True
Terminal.TCPPort = 17
C++ Example short iPort;
pISession->get_Port(&iPort);
if (iPort != 23)
{
iPort=23;
pITerminal->put_TCPPort(iPort);
}
IPort = 17;
pITerminal->put_TCPPort (iPort);
Property: IHETerminal::Transport
Property: IHETerminal::UserDir
This property returns or sets a value specifying where the user directory (which stores profiles,
schemes, and macros) is located.
Basic Syntax String = HETerminal.UserDir
HETerminal.UserDir = String
HRESULT IHETerminal.put_UserDir([in]
BSTR * newVal);
Parameters pVal—The returned value, specifying the location
of the user directory.
if (Len(str)=0) Then
Terminal.UserDir =
"C:\\Program Files\Hummingbird"
End If
C++ Example BSTR bstr;
Terminal.get_UserDir(&bstr);
if (strlen( OLE2A(bstr)) == 0 )
{
if (bstr!=NULL)
SysFreeString(bstr);
bstr =
SysAllocString(OLESTR(
"C:\\Program Files\Hummingbird"))
Terminal.put_UserDir(bstr);
SysFreeString(bstr);
}
About the Profile Object
The Profile object contains the values of general session-related configuration settings for session items such as terminals, graphics,
and security. It consists of several interfaces.
Profile Interface
The Profile interface lets you modify the main configuration settings and lets you access other Profile-related interfaces.
Methods
The Profile interface consists of the following methods:
Load
LoadColorScheme
LoadFileTransferScheme
LoadQuickKeyFile
Save
Properties
The Profile interface consists of the following properties:
AddOIAToCapture Hotspots
AllowErrorRestart Keyboard
AttnFormat KillMacrosOnSessionExit
Capture Mouse
ClearPassword PCPrint
Color PrintSession
Connection PrintScreen
Cursor ProfileName
DDEServerName QueryShutdown
Display RecordPortableMacros
Edit ReRunAutoMacro
EmuTraceFilename Security
AllowEmuTracing SessionWindow
EnableHLLAPITracing Sound
EnableTracing Terminal
Events TerminalType
FileTransfer Toolbar
Fonts TrackMenu
GlobalSettingsPath TranslationTable
Graphics UserDirectory
HLLAPITraceFilename VTCharset
HostPrinting WinDDEEnabled
Method: IHEProfile::Load
This method loads the specified profiles.
Basic Syntax HEProfile.Load
Method: IHEProfile::LoadColorScheme
This method loads the specified color scheme for the session. A scheme is a collection of settings.
Basic Syntax HEProfile.LoadColorScheme(bstrScheme As
String)
C++ Syntax HRESULT IHEProfile::LoadColorScheme([in]
BSTR bstrScheme);
Parameters bstrScheme—The name of the color scheme that you
want to load for the current session.
Basic Dim Profile As HEProfile
Example Set Profile = Terminal.Session
Profile.ProfileName = "C:\\aix.hep"
Profile.Load
Profile.LoadColorScheme("ATM-
Saint_Louis_Blues")
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
BSTR bstr;
bstr = SysAllocString(OLESTR("C:\\aix.hep"));
pSess->put_ProfileName(bstr);
SysFreeString(bstr);
pSess->Load();
bstr = SysAllocString(OLESTR("ATM-Saint_Louis_Blues"));
pSess->LoadColorScheme(bstr);
SysFreeString(bstr);
Method: IHEProfile::LoadFileTransferScheme
This method loads the specified file transfer scheme for the current session.
Basic HEProfile.LoadFileTransferScheme(bstrScheme As
Syntax String)
Method: IHEProfile::LoadQuickKeyFile
This method loads a new set of Quick-Keys (multi-functional shortcuts) for the session.
Note: Quick-Keys are shared between sessions; loading a new set of Quick-Keys from one session will affect other sessions.
Method: IHEProfile::Save
This method saves and updates the profile file with the specified values in the associated Profile object. You can save one of the
following types of values:
• • All—Saves all values in the Profile object.
• • Fonts—Saves all changes to the session font.
• • Event Sceme—Saves the event scheme for the current session.
Basic Syntax HEProfile.Save(newVal As HOSTEX_SAVE_OPTIONS)
Related Topics
HOSTEX_SAVE_OPTIONS Data Type
Property: IHEProfile::AddOIAToCapture
This property returns or sets a value indicating whether HostExplorer captures the OIA (Operator Information Area) in every screen.
Basic Boolean = HEProfile.AddOIAToCapture
Syntax
HEProfile.AddOIAToCapture = Boolean
HRESULT IHEProfile::put_AddOIAToCapture([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer captures the OIA. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not capture the OIA.
Property: IHEProfile::AllowErrorRestart
This property returns or sets the Allow Error Restart system setting. When this setting is enabled, HostExplorer automatically attempts to
reconnect a terminated session, regardless of the reason. The default value of this property is VARIANT_FALSE.
Basic Boolean = HEProfile.AllowErrorRestart
Syntax
HEProfile.AllowErrorRestart = Boolean
C++ HRESULT
Syntax IHEProfile::get_AllowErrorRestart([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfile::put_AllowErrorRestart([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer attempts to
reconnect a terminated session. If pVal equals
VARIANT_FALSE, HostExplorer does not attempt
to reconnect.
Property: IHEProfile::AttnFormat
This property returns or sets a value that enables compatibility with other servers or gateways.
Basic Syntax HOSTEX_ATN_FORMAT =
HEProfile.AttnFormat
HEProfile.AttnFormat =
HOSTEX_ATN_FORMAT
C++ Syntax HRESULT
IHEProfile::get_AttnFormat([out,
retval] HOSTEX_ATN_FORMAT *pVal);
HRESULT
IHEProfile::put_AttnFormat([in]
HOSTEX_ATN_FORMAT newVal);
Parameters pVal—The returned value, which enables
compatibility with other application formats.
Related Topics
HOSTEX_ATN_FORMAT Data Type
Property: IHEProfile::ClearPassword
This property returns or sets a value indicating whether HostExplorer saves the session password in encrypted format. By default, this
property is set to VARIANT_FALSE.
Basic Boolean = HEProfile.ClearPassword
Syntax
HEProfile.ClearPassword = Boolean
C++ HRESULT
Syntax IHEProfile::get_ClearPassword([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfile::put_ClearPassword([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer saves the password
in non-encrypted format. A returned value of
VARIANT_FALSE indicates that HostExplorer
saves the password in encrypted format.
Property: IHEProfile::Color
This property returns a pointer to the ProfileColor interface and its associated properties in HostExplorer.
Basic Syntax HEProfileConnection = HEProfile.Color
Related Topics
ProfileColor Interface
Property: IHEProfile::Connection
This property returns a pointer to the ProfileConnection interface and its associated properties in HostExplorer.
Basic Syntax HEProfileConnection =
HEProfile.Connection
Related Topics
ProfileConnection Interface
Property: IHEProfile::Cursor
This property returns a pointer to the Cursor object to retrieve general cursor-related options.
Basic Syntax HEProfileCursor = HEProfile.Cursor
Property: IHEProfile::DDEServerName
This property returns or sets a string specifying the DDE (Dynamic Data Exchange) server name. By default, this property is set to
HOSTEX.
Basic String = HEProfile.DDEServerName
Syntax
HEProfile.DDEServerName = String
C++ HRESULT
Syntax IHEProfile::get_DDEServerName([out,
retval] BSTR *pVal);
HRESULT IHEProfile::put_DDEServerName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the DDE
server name.
Property: IHEProfile::Display
This property returns a pointer to the ProfileDisplay interface to retrieve general display-related options.
Basic Syntax HEProfileDisplay = HEProfile.Display
Property: IHEProfile::Edit
This property returns a pointer to the ProfileEdit interface to retrieve general editing-related options.
Basic Syntax HEProfileEdit = HEProfile.Edit
Property: IHEProfile::EmuTraceFilename
This property returns or sets a string specifying the name of the tracing file. By default, this file is located in C:\EHLLAPI.TRC.
Basic String = HEProfile.EmuTraceFilename
Syntax
HEProfile.EmuTraceFilename = String
C++ HRESULT
Syntax IHEProfile::get_EmuTraceFilename([out,
retval] BSTR *pVal);
HRESULT IHEProfile::put_EmuTraceFilename([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the name of
the tracing file, including the full pathname.
Property: IHEProfile::AllowEmuTracing
This property returns or sets a value indicating whether HostExplorer is running the emulator-tracing function. By default, this option is
set to VARIANT_FALSE.
Basic Boolean = HEProfile.AllowEmuTracing
Syntax
HEProfile.AllowEmuTracing = Boolean
HRESULT IHEProfile::put_AllowEmuTracing([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer is running the
emulator-tracing function. A returned value of
VARIANT_FALSE indicates that HostExplorer is
not running the emulator-tracing function.
Property: IHEProfile::EnableHLLAPITracing
This property returns or sets a value that specifies whether you want to enable tracing (the process of writing the host information to a
file).
Basic Boolean = HEProfile.EnableHLLAPITracing
Syntax
HEProfile.EnableHLLAPITracing = Boolean
HRESULT IHEProfile::put_EnableHLLAPITracing([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
enables tracing. A returned value of
VARIANT_FALSE disables tracing.
Property: IHEProfile::EnableTracing
This property returns or sets a value that specifies whether HostExplorer enables tracing and creates a trace file.
Basic Boolean = HEProfile.EnableTracing
Syntax
HEProfile.EnableTracing = Boolean
C++ HRESULT
Syntax IHEProfile::get_EnableTracing([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfile::put_EnableTracing([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
enables tracing. A returned value of
VARIANT_FALSE disables tracing.
Property: IHEProfile::Events
This property returns a pointer to the ProfileEvents interface and its associated properties in HostExplorer.
Basic Syntax HEProfileEvents = HEProfile.Events
Related Topics
ProfileEvents Interface
Property: IHEProfile::FileTransfer
This property returns a pointer to the ProfileFileTransfer interface to retrieve general file-transfer options.
Basic HEProfileFileTransfer =
Syntax HEProfile.FileTransfer
Property: IHEProfile::Fonts
This property returns a pointer to the ProfileFonts interface to retrieve general font-related options (such as Font Name, Font Size, and
Font Style).
Basic Syntax HEProfileFonts = HEProfile.Fonts
Property: IHEProfile::GlobalSettingsPath
This property returns or sets a string specifying the full path and name of the global settings file. By default, this property is set to
HostEx.ini.
Basic String = HEProfile.GlobalSettingsPath
Syntax
HEProfile.GlobalSettingsPath = String
C++ HRESULT
Syntax IHEProfile::get_GlobalSettingsPath([out,
retval] BSTR *pVal);
HRESULT IHEProfile::put_GlobalSettingsPath([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the full path
and name of the global settings file.
Property: IHEProfile::Graphics
This property returns a pointer to the ProfileGraphics interface to retrieve general graphic-related options.
Basic Syntax HEProfileGraphics =
HEProfile.Graphics
Property: IHEProfile::Hotspots
This property returns a pointer to the ProfileHotspots interface and its associated properties in HostExplorer.
Basic Syntax HEProfileHotspots =
HEProfile.Hotspots
Related Topics
ProfileHotspots Interface
Property: IHEProfile::Keyboard
This property returns a pointer to the ProfileKeyboard interface to retrieve general keyboard-related options.
Basic Syntax ProfileKeyboard = HEProfile.Keyboard
This property returns or sets a value indicating whether HostExplorer kills any running macros when it terminates the current session.
Basic Boolean = HEProfile.KillMacrosOnSessionExit
Syntax
HEProfile.KillMacrosOnSessionExit = Boolean
C++ HRESULT
Syntax IHEProfile::get_KillMacrosOnSessionExit([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfile::put_KillMacrosOnSessionExit([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer kills any macros
that are still running when the session ends. If
pVal equals VARIANT_FALSE, HostExplorer does
not kill any active macros when the session ends.
Property: IHEProfile::Mouse
This property returns a pointer to the ProfileMouse interface to retrieve general mouse-related options.
Basic Syntax HEProfileMouse = HEProfile.Mouse
Property: IHEProfile::PCPrint
This property returns a pointer to the ProfilePCPrint interface to retrieve general output-related options.
Basic Syntax HEProfilePCPrint = HEProfile.PCPrint
Property: IHEProfile::PrintSession
This property returns a pointer to the ProfilePrintSession interface to retrieve options related to launching a Print session.
Basic HEProfilePrintSession =
Syntax HEProfile.PrintSession
Property: IHEProfile::PrintScreen
This property returns a pointer to the ProfilePrintScreen object to retrieve general options related to printing the screen.
Basic HEProfilePrintScreen =
Syntax HEProfile.PrintScreen
Property: IHEProfile::ProfileName
This property returns or sets a string indicating the profile name (including the full pathname) for a session.
Basic Syntax String = HEProfile.ProfileName
HEProfile.ProfileName = String
HRESULT
IHEProfile::put_ProfileName([in] BSTR
newVal);
Parameters pVal—The returned string, which indicates the
profile name.
Property: IHEProfile::QueryShutdown
This property returns or sets a value indicating whether HostExplorer shuts down automatically if it is still active when Windows shuts
down. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfile.QueryShutdown
Syntax
HEProfile.QueryShutdown = Boolean
HRESULT IHEProfile::put_QueryShutdown([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer forces Windows to
postpone shutting down until HostExplorer fully
shuts down. A returned value of
VARIANT_FALSE indicates that HostExplorer
shuts down automatically when Windows shuts
down.
This property returns a pointer to the ProfileCapture interface to retrieve the Save File options.
Basic Syntax HEProfileCapture = HEProfile.Capture
Property: IHEProfile::RecordPortableMacros
This property returns a value that indicates the current Record Portable Macros system setting. This setting enables or disables the
Macro Recorder.
Basic Boolean = HEProfile.RecordPortableMacros
Syntax
C++ HRESULT
Syntax IHEProfile::get_RecordPortableMacros([out,
retval] VARIANT_BOOL *pVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, the setting is ON and the Macro
Recorder is enabled. If pVal equals
VARIANT_FALSE, the setting is OFF and the
Macro Recorder is disabled.
Basic Example Dim Profile As HEProfile
Set Profile = Terminal.Session
Dim bVal As Boolean
' Get value
bVal = Profile.RecordPortableMacros
If (bVal = False) Then
' Add code
End If
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
VARIANT_BOOL bVal;
pSess->get_RecordPortableMacros(&bVal);
if (bVal == VARIANT_FALSE)
{
// Add code
}
Property: IHEProfile::ReRunAutoMacro
This property returns or sets a value indicating whether HostExplorer re-executes the Auto Macro when you re-create the session using
the Auto Reconnect feature.
Basic Boolean = HEProfile.ReRunAutoMacro
Syntax
HEProfile.ReRunAutoMacro = Boolean
HRESULT IHEProfile::put_ReRunAutoMacro([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer re-executes the
Auto Macro when you re-create the session. If
pVal equals VARIANT_FALSE, HostExplorer
does not re-execute the Auto Macro.
Related Topics
Property: IHEProfileConnection::AutoMacroName
Property: IHEProfile::Security
This property returns a pointer to the ProfileSecurity interface to retrieve general security-related options.
Basic Syntax HEProfileSecurity =
HEProfile.Security
Property: IHEProfile::SessionWindow
This property returns a pointer to the ProfileSessionWindow interface and its associated properties in HostExplorer.
Basic HEProfileSessionWindow =
Syntax HEProfile.SessionWindow
Related Topics
ProfileSessionWindow Interface
Property: IHEProfile::Sound
This property returns a pointer to the ProfileSound interface and its associated properties in HostExplorer.
Basic Syntax HEProfileSound = HEProfile.Sound
Related Topics
ProfileSound Interface
Property: IHEProfile::Terminal
This property returns a pointer to the ProfileTerminal interface and its associated properties in HostExplorer.
Basic Syntax HEProfileTerminal =
HEProfile.Terminal
Property: IHEProfile::TerminalType
This property returns or sets a value specifying the terminal type for the session, such as TN3270, TN5250, TNVT, VT-52, or VT-100.
Basic Syntax Long = HEProfile.TerminalType
HEProfile.TerminalType = Long
HRESULT
IHEProfile::put_TerminalType([in] long
newVal);
Parameters pVal—The following returned values specify the
terminal type for the session:
1—TN3270 terminals
2—TNVT terminals
3—TN5250 terminals
Property: IHEProfile::Toolbar
This property returns a pointer to the ProfileToolbar interface and its associated properties in HostExplorer.
Basic Syntax HEProfileToolbar = HEProfile.Toolbar
Related Topics
ProfileToolbar Interface
Property: IHEProfile::HLLAPITraceFilename
This property returns or sets a string specifying the name of the file that contains the information that is sent to and received from the
host.
Basic String = HEProfile.HLLAPITraceFilename
Syntax
HEProfile.HLLAPITraceFilename = String
HRESULT IHEProfile::put_HLLAPITraceFilename([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the file name.
Property: IHEProfile::TrackMenu
This property returns a pointer to the ProfileTrackMenu interface to retrieve general options related to the Track menu.
Basic Syntax HEProfileTrackMenu =
HEProfile.TrackMenu
Property: IHEProfile::TranslationTable
This property returns a pointer to the ProfileTranslationTable interface to retrieve TranslationTable options related to the language used
and whether the file being transferred is text or binary.
Basic HEProfileTranslationTable =
Syntax HEProfile.TranslationTable
This property returns or sets a string specifying a user directory where objects such as Quick-Keys, key-map file, schemes, macros, and
profiles are stored.
Basic String = HEProfile.UserDirectory
Syntax
HEProfile.UserDirectory = String
HRESULT IHEProfile::put_UserDirectory([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the user
directory.
Property: IHEProfile::VTCharset
This property returns a pointer to the ProfileVTCharset interface to retrieve general options related to the character set.
Basic Syntax HEProfileVTCharset =
HEProfile.VTCharset
C++ Syntax HRESULT
IHEProfile::get_VTCharset([out,
retval] IHEProfileVTCharset **pVal);
Parameters pVal—The returned pointer to the
IHEProfileVTCharset interface.
Basic Dim Profile As HEProfile
Example Set Profile = Terminal.Session
Dim SessVTChSet As HEProfileVTCharset
Set SessVTChSet = Profile.VTCharset
SessVTChSet.VTNRCMode = True
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileVTCharset *pVTCharset;
pSess->get_VTCharset(&pVTCharset);
VARIANT_BOOL bVal = VARIANT_TRUE;
pVTCharset->put_VTCharset(bVal);
Related Topics
TNVT UPSS Language-Conversion Table
Property: IHEProfile::HostPrinting
This property returns a pointer to the ProfileHostPrinting interface to retrieve the VT Printing options from the Output Group.
Basic HEProfileHostPrinting =
Syntax HEProfile.HostPrinting
Property: IHEProfile::WinDDEEnabled
This property returns or sets a value indicating whether HostExplorer enables or disables DDE (Dynamic Data Exchange). DDE allows
programs to communicate with the emulator. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfile.WinDDEEnabled
Syntax
HEProfile.WinDDEEnabled = Boolean
C++ HRESULT
Syntax IHEProfile::get_WinDDEEnabled([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfile::put_WinDDEEnabled([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables DDE. A
returned value of VARIANT_FALSE indicates that
HostExplorer disables DDE.
ProfileTerminal Interface
The ProfileTerminal interface lets you set configuration settings related to the terminal.
Properties
The ProfileTerminal interface consists of the following properties:
AlternateScreen VTBSIsDel
CharacterSet VTConcealAnswerback
CustomModel VTDefColsPerScreen
CustomModelCols VTDefLinesPerScreen
CustomModelRows VTDisplayMode
DetectChainedIO VTEnableSSH
ForceAltSize VTForce8Bit
New3270EAB VTLocalEcho
NewModel3279 VTNewTerminalType
NewModelType VTOnLine
ReplyOEM VTScrollSpeed
ShortName VTSmoothScroll
VT8BitMode VTTerminalID
VTAnswerback VTWrapLine
Property: IHEProfileTerminal::AlternateScreen
This property returns or sets a value indicating whether to change the window (screen) to the alternate size. By default, this option is
VARIANT_FALSE.
Basic Boolean = HEProfileTerminal.AlternateScreen
Syntax
HEProfileTerminal.AlternateScreen = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_AlternateScreen([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_AlternateScreen([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the screen always opens in the
alternate (larger) screen mode. A returned value
of VARIANT_FALSE indicates that the default
screen opens.
Property: IHEProfileTerminal::CharacterSet
This property returns or sets a value that specifies character-set information for the host.
Basic Integer = HEProfileTerminal.CharacterSet
Syntax
HEProfileTerminal.CharacterSet = Integer
C++ HRESULT
Syntax IHEProfileTerminal::get_CharacterSet([out,
retval] short *pVal);
HRESULT IHEProfileTerminal::put_CharacterSet([in]
short newVal);
Parameters pVal—The returned string, which indicates the
character-set information.
Related Topics
TN5250 Language-Conversion Table
Property: IHEProfileTerminal::DetectChainedIO
This property returns or sets a value indicating whether HostExplorer enables the automatic detection of chained Write/Read commands.
By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileTerminal.DetectChainedIO
Syntax
HEProfileTerminal.DetectChainedIO = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_DetectChainedIO([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_DetectChainedIO([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer enables the
automatic detection of chained Write/Read
commands. If pVal equals VARIANT_FALSE,
HostExplorer does not enable automatic
detection.
Property: IHEProfileTerminal::ForceAltSize
This property returns or sets a value indicating whether HostExplorer changes the window to the alternate size when the host receives
an Erase Write command. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileTerminal.ForceAltSize
Syntax
HEProfileTerminal.ForceAltSize = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_ForceAltSize([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_ForceAltSize([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer changes the window
to the alternate size. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not change the window to the alternate size.
Property: IHEProfileTerminal::New3270EAB
This property returns or sets a value indicating whether HostExplorer enables Extended Attributes when you select 3279 as the 3270
type. Extended Attributes are the mainframe application codes used to display various colors, highlighting, reverse images, and blinking;
they let your computer fully emulate the mainframe screen. The change in this value takes effect only after you disconnect and
reconnect the session. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileTerminal.New3270EAB
Syntax
HEProfileTerminal.New3270EAB = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_New3270EAB([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_New3270EAB([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables Extended
Attributes. A returned value of VARIANT_FALSE
indicates that HostExplorer disables Extended
Attributes.
Property: IHEProfileTerminal::NewModel3279
This property returns or sets a value indicating whether HostExplorer supports Extended Attributes mode. By default, this property is set
to VARIANT_TRUE.
Basic HEProfileTerminal.NewModel3279 = Boolean
Syntax
HRESULT IHEProfileTerminal::put_NewModel3279([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
(3279) indicates that HostExplorer supports
Extended Attributes mode. A returned value of
VARIANT_FALSE (3278) indicates that
HostExplorer does not support Extended
Attributes mode.
Property: IHEProfileTerminal::NewModelType
This property returns or sets a value (Short integer) specifying the model type for the session. After the terminal model is changed, you
must disconnect from and reconnect to the host. Otherwise, HostExplorer does not update the change to the current session. Changing
this value takes effect only after you disconnect and reconnect the session. VT220 is the most commonly supported terminal on most
UNIX systems. IBM 3151 is used to connect to AIX systems.
Note: Use the VT320 or VT420 terminal type only if you have proper termcap entries on the host. Use SCO ANSI when
connecting to SCO UNIX systems.
C++ HRESULT
Syntax IHEProfileTerminal::get_NewModelType([out,
retval] short *pVal);
HRESULT IHEProfileTerminal::put_NewModelType([in]
short newVal);
Parameters pVal—For TN3270 terminals, the following returned
values specify the model type for the session.
• 2—Model 2 (24x80)
• 3—Model 3 (32x80)
• 4—Model 4 (43x80)
• 5—Model 5 (27x132)
For TN5250 terminals, the following returned values
specify the model type for the session:
• 2—Model 2 (24x80)
• 5—Model 5 (27x132)
For TNVT terminals, the following returned values
specify the model type for the session:
• HOSTEX_TERM_MODEL_VT52
• HOSTEX_TERM_MODEL_VT100
• HOSTEX_TERM_MODEL_VT101
• HOSTEX_TERM_MODEL_VT102
• HOSTEX_TERM_MODEL_VT220
• HOSTEX_TERM_MODEL_VT320
• HOSTEX_TERM_MODEL_VT420
• HOSTEX_TERM_MODEL_ANSI
• HOSTEX_TERM_MODEL_SCOANSI
• HOSTEX_TERM_MODEL_TERMIBM3151
Property: IHEProfileTerminal::ReplyOEM
This property returns or sets a value indicating whether HostExplorer sends an OEM reply field back to the host in response to receiving
a Read Partition Query. If sent, the OEM reply contains information about the terminal session and features available for the host to use.
Clear this option if you experience difficulty starting GDDM, SAS, or other mainframe applications. By default, this property is set to
VARIANT_TRUE.
Basic Boolean = HEProfileTerminal.ReplyOEM
Syntax
HEProfileTerminal.ReplyOEM = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_ReplyOEM([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_ReplyOEM([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer sends an OEM reply
field back to the host. A returned value of
VARIANT_FALSE indicates that HostExplorer
sends an OEM reply field back to the host.
newVal—A value of VARIANT_TRUE indicates
that HostExplorer sends an OEM reply field back
to the host. A value of VARIANT_FALSE
indicates that HostExplorer does not send an
OEM reply field back to the host.
Basic Example Dim SessTerm As HEProfileTerminal
Set SessTerm = Profile.Terminal
Dim bVal As Boolean
' Get value
bVal = SessTerm.ReplyOEM
If (bVal = False) Then
' Set value
SessTerm.ReplyOEM = True
End If
C++ Example IHEProfileTerminal *pTerm;
pSess->get_Terminal(&pTerm);
VARIANT_BOOL bVal;
pTerm->get_ReplyOEM(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pTerm->put_ReplyOEM(bVal);
}
Property: IHEProfileTerminal::ShortName
This property returns or sets an identifier string that HLLAPI applications use to access a particular session.
Basic String = HEProfileTerminal.ShortName
Syntax
HEProfileTerminal.ShortName = String
C++ HRESULT
Syntax IHEProfileTerminal::get_ShortName([out,
retval] BSTR *pVal);
HRESULT IHEProfileTerminal::put_ShortName([in]
BSTR newVal);
Parameters pVal—The return value that specifies the
identifier string.
// Set the ID
if (bstr != NULL)
SysFreeString(bstr);
bstr = SysAllocString(OLESTR("B"));
pTerm->put_ShortName(bstr);
SysFreeString(bstr);
Property: IHEProfileTerminal::CustomModel
This property returns or sets a value indicating whether HostExplorer is running a special model of the mainframe terminal to emulate
the session.
Basic Boolean = HEProfileTerminal.CustomModel
Syntax
HEProfileTerminal.CustomModel = Boolean
HRESULT IHEProfileTerminal::put_CustomModel([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer is running a special
model of the mainframe. A returned value of
VARIANT_FALSE indicates that HostExplorer is
not running a special model of the mainframe.
Property: IHEProfileTerminal::CustomModelCols
This property returns or sets a value (Short integer) specifying the special model number of columns for the session.
Basic Integer = HEProfileTerminal.CustomModelCols
Syntax
HEProfileTerminal.CustomModelCols = Integer
C++ HRESULT
Syntax IHEProfileTerminal::get_CustomModelCols([out,
retval] short *pVal);
HRESULT IHEProfileTerminal::put_CustomModelCols([in]
short newVal);
Parameters pVal—The returned value, specifying the special
model number of columns for the session.
Property: IHEProfileTerminal::CustomModelRows
This property returns or sets a value specifying the special model number of rows for the session.
Basic Integer = HEProfileTerminal.CustomModelRows
Syntax
HEProfileTerminal.CustomModelRows = Integer
HRESULT IHEProfileTerminal::put_CustomModelRows([in]
short newVal);
Parameters pVal—The returned value, specifying the special
model number of rows for the session.
Property: IHEProfileTerminal::VT8BitMode
This property returns or sets a value indicating whether HostExplorer uses the 8-bit transmission mode to connect to the host. This 8-bit
mode supports 7-bit and 8-bit data formats.
Basic Boolean = HEProfileTerminal.VT8BitMode
Syntax
HEProfileTerminal.VT8BitMode = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_VT8BitMode([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_VT8BitMode([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer uses the 8-bit
transmission mode. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not use the 8-bit transmission mode.
Property: IHEProfileTerminal::VTAnswerback
This property returns or sets a string specifying an Answerback message. You can enter special-character sequences in this field.
Basic String = HEProfileTerminal.VTAnswerback
Syntax
HEProfileTerminal.VTAnswerback = String
C++ HRESULT
Syntax IHEProfileTerminal::get_VTAnswerback([out,
retval] BSTR *pVal);
HRESULT IHEProfileTerminal::put_VTAnswerback([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the
Answerback message.
Property: IHEProfileTerminal::VTBSIsDel
This property returns or sets a value indicating the type of code that the Backspace key sends.
Basic Boolean = HEProfileTerminal.VTBSIsDel
Syntax
HEProfileTerminal.VTBSIsDel = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_VTBSIsDel([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_VTBSIsDel([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the Backspace key sends a Del
(127) code. A returned value of
VARIANT_FALSE indicates that the Backspace
key sends a BS (8) code.
Property: IHEProfileTerminal::VTConcealAnswerback
This property returns or sets a value indicating whether HostExplorer clears the Answerback message field. By default, this property is
set to VARIANT_FALSE.
Basic Boolean = HEProfileTerminal.VTConcealAnswerback
Syntax
HEProfileTerminal.VTConcealAnswerback = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_VTConcealAnswerback([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_VTConcealAnswerback([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer clears the Answerback
message field. A returned value of
VARIANT_FALSE indicates that HostExplorer does
not clear the Answerback message field.
Property: IHEProfileTerminal::VTDefColsPerScreen
This property returns or sets a value specifying the default screen width that HostExplorer uses when it launches a new session. The
available screen widths are:
• 80 columns
• 132 columns
• Custom—between 80 and 200 columns
Basic Integer = HEProfileTerminal.VTDefColsPerScreen
Syntax
HEProfileTerminal.VTDefColsPerScreen = Integer
C++ HRESULT
Syntax IHEProfileTerminal::get_VTDefColsPerScreen([out,
retval] short *pVal);
HRESULT IHEProfileTerminal::put_VTDefColsPerScreen([in]
short newVal);
Parameters pVal—The returned value, specifying the default
screen width that HostExplorer uses when it
launches a new session.
Property: IHEProfileTerminal::VTDefLinesPerScreen
This property returns or sets a value specifying the default screen height that HostExplorer uses when it launches a new session. By
default, this property is set to 24.
Basic Integer = HEProfileTerminal.VTDefLinesPerScreen
Syntax
HEProfileTerminal.VTDefLinesPerScreen = Integer
C++ HRESULT
Syntax IHEProfileTerminal::get_VTDefLinesPerScreen([out,
retval] short *pVal);
HRESULT IHEProfileTerminal::put_VTDefLinesPerScreen([in]
short newVal);
Parameters pVal—The returned value, specifying the default
screen height.
Property: IHEProfileTerminal::VTDisplayMode
This property returns or sets a value specifying the display mode. By default, this property is set to Optimized mode.
Basic Integer = HEProfileTerminal.VTDisplayMode
Syntax
HEProfileTerminal.VTDisplayMode = Integer
HRESULT IHEProfileTerminal::put_VTDisplayMode([in]
short newVal);
Parameters pVal—A returned value of Optimized mode
indicates that HostExplorer performs “bulk”
updates to the screen. Typically, the emulator
performs bulk updates at the end of a data
stream. A returned value of Realistic mode
indicates that HostExplorer updates the screen as
it receives new characters. Although this is a
much slower option, it allows for smoother
scrolling.
newVal—A value of Optimized mode indicates
that HostExplorer performs “bulk” updates to the
screen. Typically, the emulator performs bulk
updates at the end of a data stream. A value of
Realistic mode indicates that HostExplorer
updates the screen as it receives new characters.
Basic Example Dim SessTerm As HEProfileTerminal
Set SessTerm = Profile.Terminal
Dim iVal As Integer
' Get value
iVal = SessTerm.VTDisplayMode
If (iVal = 0) Then
' Set value
SessTerm.VTDisplayMode = 1
End If
C++ Example IHEProfileTerminal *pTerm;
pSess->get_Terminal(&pTerm);
short sVal;
pTerm->get_VTDisplayMode(&sVal);
if (sVal == 0)
{
sVal = 1;
pTerm->put_VTDisplayMode(sVal);
}
Property: IHEProfileTerminal::VTEnableSSH
This property returns or sets a value indicating whether HostExplorer uses SSH (Secure Shell) encryption between the server and client.
Basic Boolean = HEProfileTerminal.VTEnableSSH
Syntax
HEProfileTerminal.VTEnableSSH = Boolean
HRESULT IHEProfileTerminal::put_VTEnableSSH([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer uses SSH
encryption. If pVal equals VARIANT_FALSE,
HostExplorer does not use SSH encryption.
Property: IHEProfileTerminal::VTForce8Bit
This property returns or sets a value indicating whether HostExplorer supports 8-bit data transfers even when NRC support is enabled.
Usually the high-order bit of incoming data is stripped when NRC is enabled. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileTerminal.VTForce8Bit
Syntax
HEProfileTerminal.VTForce8Bit = Boolean
HRESULT IHEProfileTerminal::put_VTForce8Bit([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer supports 8-bit data
transfers. A returned value of VARIANT_FALSE
indicates that HostExplorer does not support 8-bit
data transfers.
HRESULT IHEProfileTerminal::put_VTLocalEcho([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer echoes all the data
that you type. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not echo any data that you type.
Property: IHEProfileTerminal::VTNewTerminalType
This property returns or sets a value specifying the VT terminal type to use for the current session. After changing the terminal type, you
must disconnect and reconnect to the host. Otherwise, HostExplorer does not update the the current session. VT220 is the most
commonly supported terminal on most UNIX systems.
Note: Use VT320 or VT420 only if you have proper termcap entries on the host. Use SCO ANSI when connecting to SCO
UNIX systems.
HRESULT IHEProfileTerminal::put_VTNewTerminalType([in]
short newVal);
Parameters pVal—The following returned values specify the
VT terminal type to use for the current session:
• 2—MODEL 2
• 3—MODEL 3
• 4—MODEL 4
• 5—MODEL 5
• 6—VT52
• 7—VT100
• 8—VT101
• 9—VT102
• 10—VT220
• 11—VT320
• 12—VT420
• 13—ANSI
• 14—SCOANSI
• 15—TERM_IBM3151
• 16—WYSE50
• 17—WYSE60
Property: IHEProfileTerminal::VTOnLine
This property returns or sets a value indicating whether HostExplorer sends data to the host. By default, this property is set to
VARIANT_TRUE.
Basic Boolean = HEProfileTerminal.VTOnLine
Syntax
HEProfileTerminal.VTOnLine = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_VTOnLine([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_VTOnLine([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the terminal is online and sends
data to the host. A returned value of
VARIANT_FALSE indicates that the terminal is
offline, so you can type and move the cursor
around the screen without sending data to the
host.
Property: IHEProfileTerminal::VTScrollSpeed
This property returns or sets a value specifying the Smooth Scrolling speed. The value can range from 1 to 30. If the value is greater
than the number of vertical pixels per cell, scrolling occurs in Line mode.
Basic Integer = HEProfileTerminal.VTScrollSpeed
Syntax
HEProfileTerminal.VTScrollSpeed = Integer
C++ HRESULT
Syntax IHEProfileTerminal::get_VTScrollSpeed([out,
retval] short *pVal);
HRESULT IHEProfileTerminal::put_VTScrollSpeed([in]
short newVal);
Parameters pVal—The returned value, specifying the
Smooth Scrolling speed. The value can range
from 2 to the value of the font height.
Property: IHEProfileTerminal::VTSmoothScroll
This property returns or sets a value indicating whether HostExplorer uses the Smooth Scrolling feature. Before setting this property, you
have to set the VT Display mode to Realistic.
Basic Boolean = HEProfileTerminal.VTSmoothScroll
Syntax
HEProfileTerminal.VTSmoothScroll = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_VTSmoothScroll([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_VTSmoothScroll([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer scrolls data using a
smooth scroll method. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not scroll data line by line.
Property: IHEProfileTerminal::VTTerminalID
This property returns or sets a value specifying the terminal ID or Device Attribute (DA) response that HostExplorer sends to the host.
The DA contains the control sequences that define the terminal and its configuration and identifies the particular type of terminal to the
host.
Basic Integer = HEProfileTerminal.VTTerminalID
Syntax
HEProfileTerminal.VTTerminalID = Integer
C++ HRESULT
Syntax IHEProfileTerminal::get_VTTerminalID([out,
retval] short *pVal);
HRESULT IHEProfileTerminal::put_VTTerminalID([in]
short newVal);
Parameters pVal—The following returned values specify the
terminal ID or DA response that HostExplorer
sends to the host:
• 0—VT100
• 1—VT101
• 2—VT102
• 3—VT220
• 4—VT320
• 5—VT420
• 6—VT80
• 7—VT100J
• 8—VT102J
• 9—VT220J
• 10—VT282
• 11—VT382
Property: IHEProfileTerminal::VTWrapLine
This property returns or sets a value indicating whether HostExplorer automatically wraps lines that extend past the last column on the
screen. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileTerminal.VTWrapLine
Syntax
HEProfileTerminal.VTWrapLine = Boolean
C++ HRESULT
Syntax IHEProfileTerminal::get_VTWrapLine([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileTerminal::put_VTWrapLine([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically wraps
lines. A returned value of VARIANT_FALSE
indicates that HostExplorer does not
automatically wrap lines.
ProfileGraphics Interface
The ProfileGraphics interface lets you set configuration settings related to graphics.
Properties
The ProfileGraphics interface consists of the following properties:
APL
GraphicsCursorType
GraphicsModel
LightPen
ProgramSymbols
PSCellSize
Property: IHEProfileGraphics::APL
This property returns or sets a value that indicates whether HostExplorer supports APL (A Program Language). By default, this property
is set to VARIANT_TRUE.
Basic Syntax Boolean = HEProfileGraphics.APL
HEProfileGraphics.APL = Boolean
HRESULT
IHEProfileGraphics::put_APL([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer supports APL. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not support APL.
Property: IHEProfileGraphics::GraphicsCursorType
This property lets you determine how the cursor appears in the terminal window.
Basic HOSTEX_GRAPHICS_CURSOR_TYPE =
Syntax HEProfileGraphics.GraphicsCursorType
HEProfileGraphics.GraphicsCursorType =
HOSTEX_GRAPHICS_CURSOR_TYPE
C++ HRESULT IHEProfileGraphics::get_GraphicsCursorType([out,
Syntax retval] HOSTEX_GRAPHICS_CURSOR_TYPE *pVal);
HRESULT IHEProfileGraphics::put_GraphicsCursorType([in]
HOSTEX_GRAPHICS_CURSOR_TYPE newVal);
Parameters pVal—The returned value, which indicates how the
cursor appears in the terminal window.
Related Topics
HOSTEX_GRAPHICS_CURSOR_TYPE Data Type
Property: IHEProfileGraphics::GraphicsModel
This property lets you select the graphics terminal model to use during the next session.
Basic HOSTEX_GRAPHICS_MODEL =
Syntax HEProfileGraphics.GraphicsModel
HEProfileGraphics.GraphicsModel =
HOSTEX_GRAPHICS_MODEL
C++ HRESULT IHEProfileGraphics::get_GraphicsModel([out,
Syntax retval] HOSTEX_GRAPHICS_MODEL *pVal);
HRESULT IHEProfileGraphics::put_GraphicsModel([in]
HOSTEX_GRAPHICS_MODEL newVal);
Parameters pVal—The returned value, which indicates the
graphics terminal model to use during the next
session.
Related Topics
HOSTEX_GRAPHICS_MODEL Data Type
Property: IHEProfileGraphics::LightPen
This property returns or sets a value indicating whether HostExplorer allows you to use the keyboard and/or mouse to emulate light-pen
functionality. This functionality allows you to use a light-sensitive device to select screen fields. By default, this property is set to
VARIANT_TRUE.
Basic Boolean = HEProfileGraphics.LightPen
Syntax
HEProfileGraphics.LightPen = Boolean
C++ HRESULT
Syntax IHEProfileGraphics::get_LightPen([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileGraphics::put_LightPen([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer allows you to use the
keyboard and/or mouse to emulate light-pen
functionality. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not allow you to use the keyboard and/or
mouse to emulate light-pen functionality.
Property: IHEProfileGraphics::ProgramSymbols
This property lets you determine whether HostExplorer supports program symbols. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileGraphics.ProgramSymbols
Syntax
HEProfileGraphics.ProgramSymbols = Boolean
C++ HRESULT
Syntax IHEProfileGraphics::get_ProgramSymbols([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileGraphics::put_ProgramSymbols([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer supports program
symbols. A returned value of VARIANT_FALSE
indicates that HostExplorer does not support
program symbols.
Property: IHEProfileGraphics::PSCellSize
This property returns or sets a value that determines the cell size when HostExplorer reports a fixed-coordinate space to the host.
Because several host systems are sensitive to cell size, you need to select the appropriate size. By default, this property is set to
HOSTEX_GRAPHICS_CELLSIZE_AUTOMATIC.
Basic HOSTEX_GRAPHICS_CELL_SIZE =
Syntax HEProfileGraphics.PSCellSize
HEProfileGraphics.PSCellSize =
HOSTEX_GRAPHICS_CELLSIZE
C++ HRESULT IHEProfileGraphics::get_PSCellSize([out,
Syntax retval] HOSTEX_GRAPHICS_CELLSIZE *pVal);
HRESULT IHEProfileGraphics::put_PSCellSize([in]
HOSTEX_GRAPHICS_CELLSIZE newVal);
Parameters pVal—The returned value, which determines the cell
size when HostExplorer reports a fixed-coordinate
space to the host.
newVal—The set value, which determines the cell
size when HostExplorer reports a fixed-coordinate
space to the host.
Basic Example Dim SessGraph As HEProfileGraphics
Set SessGraph = Profile.Graphics
Dim CellSize As HOSTEX_GRAPHICS_CELL_SIZE
CellSize = SessGraph.PSCellSize
If (CellSize <> HOSTEX_GRAPHICS_CELLSIZE_AUTOMATIC)
Then
SessGraph.PSCellSize =
HOSTEX_GRAPHICS_CELLSIZE_AUTOMATIC
End If
C++ IHEProfileGraphics *pGraphics;
Example pSess->get_Graphics(&pGraphics);
HOSTEX_GRAPHICS_CELL_SIZE CellSize;
pGraphics->get_PSCellSize(&CellSize);
if (CellSize!=
HOSTEX_GRAPHICS_CELLSIZE_AUTOMATIC)
{
CellSize = HOSTEX_GRAPHICS_CELLSIZE_AUTOMATIC;
pGraphics->put_PSCellSize(CellSize);
}
Related Topics
HOSTEX_GRAPHICS_CELLSIZE Data Type
ProfileKeyboard Interface
The ProfileKeyboard interface lets you set configuration settings related to the keyboard.
Properties
The ProfileKeyboard interface consists of the following properties:
AllowAIDKeyRepeat
AllowDiac
CurrentKeyboard
KeyboardType
LockOnAttention
MapNumLock
RemapKeypad
TypeAhead
TypeAheadTimeout
VTCursorKeyApplMode
VTEnableBreak
VTKeypadApplMode
VTNewLineMode
Property: IHEProfileKeyboard::AllowAIDKeyRepeat
This property returns or sets a value indicating whether HostExplorer can send multiple function key commands to the host without
requiring you to lift and press a key again. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileKeyboard.AllowAIDKeyRepeat
Syntax
HEProfileKeyboard.AllowAIDKeyRepeat = Boolean
C++ HRESULT
Syntax IHEProfileKeyboard::get_AllowAIDKeyRepeat([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_AllowAIDKeyRepeat([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer can send multiple
function-key commands to the host. A returned
value of VARIANT_FALSE indicates that
HostExplorer does not send multiple function-key
commands to the host.
Property: IHEProfileKeyboard::AllowDiac
This property returns or sets a value indicating whether HostExplorer supports accented and/or special characters. By default, this
property is set to VARIANT_FALSE.
Basic Boolean = HEProfileKeyboard.AllowDiac
Syntax
HEProfileKeyboard.AllowDiac = Boolean
C++ HRESULT
Syntax IHEProfileKeyboard::get_AllowDiac([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_AllowDiac([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer supports accented
and/or special characters. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not support accented and/or special
characters.
Property: IHEProfileKeyboard::CurrentKeyboard
This property returns or sets a string specifying a keyboard map to use for the current session.
Basic String = HEProfileKeyboard.CurrentKeyboard
Syntax
HEProfileKeyboard.CurrentKeyboard = String
C++ HRESULT
Syntax IHEProfileKeyboard::get_CurrentKeyboard([out,
retval] BSTR *pVal);
HRESULT IHEProfileKeyboard::put_CurrentKeyboard([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the
keyboard map to use for the current session.
Property: IHEProfileKeyboard::KeyboardType
This property returns or sets a value that specifies the type of keyboard to use for the current session.
Basic HOSTEX_KEYBOARD_TYPE =
Syntax HEProfileKeyboard.KeyboardType
HEProfileKeyboard.KeyboardType =
HOSTEX_KEYBOARD_TYPE
C++ HRESULT IHEProfileKeyboard::get_KeyboardType([out,
Syntax retval] HOSTEX_KEYBOARD_TYPE *pVal);
HRESULT IHEProfileKeyboard::put_KeyboardType([in]
HOSTEX_KEYBOARD_TYPE newVal);
Parameters pVal—The returned value, specifying the type of
keyboard to use for the current session.
Related Topics
HOSTEX_KEYBOARD_TYPE Data Type
Property: IHEProfileKeyboard::LockOnAttention
This property returns or sets a value that indicates whether the keyboard is locked after you send an Attention-key command. By default,
this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileKeyboard.LockOnAttention
Syntax
HEProfileKeyboard.LockOnAttention = Boolean
C++ HRESULT
Syntax IHEProfileKeyboard::get_LockOnAttention([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_LockOnAttention([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the keyboard is locked. A returned
value of VARIANT_FALSE indicates that the
keyboard is not locked.
Property: IHEProfileKeyboard::MapNumLock
This property returns or sets a value indicating whether you can use the numeric keypad, regardless of the NumLock mode. By default,
this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileKeyboard.MapNumLock
Syntax
HEProfileKeyboard.MapNumLock = Boolean
C++ HRESULT
Syntax IHEProfileKeyboard::get_MapNumLock([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_MapNumLock([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that you can use the numeric keypad. A
returned value of VARIANT_FALSE indicates that
you cannot use the numeric keypad.
This property returns or sets a value indicating whether HostExplorer allows you to map the /, ”, -, and + keys while in NumLock mode.
By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileKeyboard.RemapKeypad
Syntax
HEProfileKeyboard.RemapKeypad = Boolean
HRESULT IHEProfileKeyboard::put_RemapKeypad([in]
VARIANT_BOOL newVal);
Parameters pVal— A returned value of VARIANT_TRUE
indicates that HostExplorer allows you to map the
/, ”, -, and + keys while in NumLock mode. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not allow you to map those
keys while in NumLock mode.
Property: IHEProfileKeyboard::TypeAhead
This property returns or sets a value indicating whether HostExplorer buffers typed characters, even when the keyboard is locked. By
default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileKeyboard.TypeAhead
Syntax
HEProfileKeyboard.TypeAhead = Boolean
HRESULT IHEProfileKeyboard::put_TypeAhead([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer buffers typed
characters. A returned value of
VARIANT_FALSE indicates that HostExplorer is
not buffering typed characters.
Property: IHEProfileKeyboard::TypeAheadTimeout
This property returns or sets the amount of time (in milliseconds) that HostExplorer waits for a host response before canceling an
attempt and clearing the Type Ahead keyboard queue. By default, this property is set to 0, which means infinite timeout.
Basic Long = HEProfileKeyboard.TypeAheadTimeout
Syntax
HEProfileKeyboard.TypeAheadTimeout = Long
Property: IHEProfileKeyboard::VTCursorKeyApplMode
This property returns or sets a variable indicating the cursor-key mode. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileKeyboard.VTCursorKeyApplMode
Syntax
HEProfileKeyboard.VTCursorKeyApplMode = Boolean
C++ HRESULT
Syntax IHEProfileKeyboard::get_VTCursorKeyApplMode([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_VTCursorKeyApplMode([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the cursor key is in Application mode.
A returned value of VARIANT_FALSE indicates that
the cursor key operates in Normal mode.
Property: IHEProfileKeyboard::VTEnableBreak
This property returns or sets a variable indicating whether HostExplorer enables the Break key to send a break signal to the host.
Basic Boolean = HEProfileKeyboard.VTEnableBreak
Syntax
HEProfileKeyboard.VTEnableBreak = Boolean
C++ HRESULT
Syntax IHEProfileKeyboard::get_VTEnableBreak([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_VTEnableBreak([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables the Break
key. A returned value of VARIANT_FALSE
indicates that HostExplorer does not enable the
Break key.
Property: IHEProfileKeyboard::VTKeypadApplMode
This property returns or sets a variable indicating the Keypad mode. When set to VARIANT_TRUE, the keypad operates in Application
mode. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileKeyboard.VTKeypadApplMode
Syntax
HEProfileKeyboard.VTKeypadApplMode = Boolean
C++ HRESULT
Syntax IHEProfileKeyboard::get_VTKeypadApplMode([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_VTKeypadApplMode([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the keypad operates in Application
mode. A returned value of VARIANT_FALSE
indicates that the keypad operates in Numeric
mode.
C++ HRESULT
Syntax IHEProfileKeyboard::get_VTNewLineMode([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileKeyboard::put_VTNewLineMode([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that pressing Enter sends a CR to the
host. A returned value of VARIANT_FALSE
indicates that pressing Enter sends a CR/LF to
the host.
ProfileMouse Interface
The ProfileMouse interface lets you set configuration settings related to the mouse.
Properties
The ProfileMouse interface consists of the following property:
BlockSelect
Property: IHEProfileMouse::BlockSelect
This property returns or sets a value indicating whether HostExplorer selects a rectangular region of the screen when selecting text. By
default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileMouse.BlockSelect
Syntax
HEProfileMouse.BlockSelect = Boolean
HRESULT IHEProfileMouse::put_BlockSelect([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indciates that HostExplorer selects a rectangular
region of the screen when selecting text. A
returned value of VARIANT_FALSE indicates that
HostExplorer selects text in a stream-like fashion.
ProfileToolbar Interface
The ProfileToolbar interface lets you set configuration settings related to the toolbar.
Properties
The ProfileToolbar interface consists of the following properties:
ShowTips
Property: IHEProfileToolbar::ShowTips
This property returns or sets a value that specifies whether HostExplorer displays a tool tip when you move the cursor over a toolbar
button.
Basic Boolean = HEProfileToolbar.ShowTips
Syntax
HEProfileToolbar.ShowTips = Boolean
C++ HRESULT IHEProfileToolbar::get_ShowTips([out,
Syntax retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileToolbar::put_ShowTips([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer displays tool
tips when you move the cursor over toolbar
buttons. If pVal equals VARIANT_FALSE,
HostExplorer does not display tool tips.
ProfileTrackMenu Interface
The ProfileTrackMenu interface lets you set configuration settings related to the Track Menu.
Properties
The ProfileTrackMenu interface consists of the following properties:
TrackCommands
TrackLabels
Property: IHEProfileTrackMenu::TrackCommands
This property returns or sets a string specifying the Track Menu functions, which are represented as predefined strings. To determine
these strings, open a HostExplorer session, then open the Edit Session Properties dialog box. In the Track Menu section, the labels
correspond to the functions. A function and label usually have the same string value.
Basic String = HEProfileTrackMenu.TrackCommands
Syntax
HEProfileTrackMenu.TrackCommands = String
C++ HRESULT
Syntax IHEProfileTrackMenu::get_TrackCommands([out,
retval] BSTR *pVal);
HRESULT IHEProfileTrackMenu::put_TrackCommands([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the Track
menu functions.
Property: IHEProfileTrackMenu::TrackLabels
This property returns or sets a string specifying the Track menu labels.
Basic String = HEProfileTrackMenu.TrackLabels
Syntax
HEProfileTrackMenu.TrackLabels = String
C++ HRESULT
Syntax IHEProfileTrackMenu::get_TrackLabels([out,
retval] BSTR *pVal);
HRESULT IHEProfileTrackMenu::put_TrackLabels([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the Track
menu labels.
ProfileTranslationTable Interface
The Translation Table interface lets you change the translation table (or host code page) used to display data received from the host.
Because mainframe systems and midrange systems (such as the AS/400) support many host languages, you must select the correct
translation table to display host data properly.
Properties
The ProfileTranslationTable interface consists of the following property:
CurrentLanguage
Property: IHEProfileTranslationTable::CurrentLanguage
This property returns or sets a value specifying the host code page.
Basic HEProfileTranslationTable.CurrentLanguage = String
Syntax
C++ HRESULT
Syntax IHEProfileTranslationTable::get_CurrentLanguage([out,
retval] BSTR *pVal);
HRESULT
IHEProfileTranslationTable::put_CurrentLanguage([in] BSTR
newVal);
Parameters pVal—The returned value, specifying the host
code page.
ProfileVTCharset Interface
The ProfileVTCharset interface lets you set configuration settings related to the VT Character Set.
Properties
The ProfileVTCharset interface consists of the following properties:
VTNRC
VTNRCMode
VTUPSS
Property: IHEProfileVTCharset::VTNRC
This property returns or sets the NRC (National Replacement Character) set.
Basic Integer = HEProfileVTCharset.VTNRC
Syntax
HEProfileVTCharset.VTNRC = Integer
HRESULT IHEProfileVTCharset::put_VTNRC([in]
short newVal);
Parameters pVal—The returned NRC set.
Related Topics
TNVT NRC Language-Conversion Table
Property: IHEProfileVTCharset::VTNRCMode
This property returns or sets a value indicating whether NRC (National Replacement Character) 7-bit mode is set for the current VT
session.
Basic Boolean = HEProfileVTCharset.VTNRCMode
Syntax
HEProfileVTCharset.VTNRCMode = Boolean
HRESULT IHEProfileVTCharset::put_VTNRCMode([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that NRC 7-bit mode is set for the
current session. A returned value of
VARIANT_FALSE indicates that NRC 7-bit mode
is not set for the current session.
Related Topics
TNVT NRC Language-Conversion Table
Property: IHEProfileVTCharset::VTUPSS
This property returns or sets the UPSS (User Preferred Supplemental Character Set).
Basic Integer = HEProfileVTCharset.VTUPSS
Syntax
HEProfileVTCharset.VTUPSS = Integer
HRESULT IHEProfileVTCharset::put_VTUPSS([in]
short newVal);
Parameters pVal—The returned UPSS in base ten.
Related Topics
TNVT UPSS Language-Conversion Table
ProfileEdit Interface
The ProfileEdit interface lets you set configuration settings related to editing.
Methods
The ProfileEdit interface contains the following methods:
ClearAllTabStops
TabStop
Properties
The ProfileEdit interface consists of the following properties:
AlwaysAutoskip
AutoCopy
AutoCopyKeepSelection
BellMargin
CellDelimited
ClipFormatBitmap
ClipFormatCSV
ClipFormatHE
ClipFormatPasteLink
ClipFormatRTF
ClipFormatText
ConvertNulls
CSVCopyEmptyFields
CSVTrimFields
CutChar
CutMode
EntryAssist
InsertResetByAttn
LeftMargin
MoveCursorAfterPaste
MultiLineDelete
MultiLineInsert
NoLockKeyb
NumericCharacters
PasteChar
PasteMode
RemoveTrailingBlankOnCopy
RespectNumeric
RightMargin
WordWrap
Method: IHEProfile::ClearAllTabStops
This method clears all tab stops for the current session.
Basic HEProfileEdit.ClearAllTabStops
Syntax
C++ HRESULT
Syntax IHEProfileEdit::ClearAllTabStops();
Related Topics
Method: IHEProfileEdit::TabStop
Method: IHEProfileEdit::TabStop
This method lets you specify a tab stop. You can use tab stops to control where the cursor moves when you press the Tab key. You
specify the position of the tab stop as a column number.
Basic HEProfileEdit.TabStop(iTabStop As Integer)
Syntax
Related Topics
Method: IHEProfile::ClearAllTabStops
Property: IHEProfileEdit::AlwaysAutoskip
This property returns or sets a value indicating whether HostExplorer defines the field attribute that follows an unprotected field on the
screen. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileEdit.AlwaysAutoskip
Syntax
HEProfileEdit.AlwaysAutoskip = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_AlwaysAutoskip([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_AlwaysAutoskip([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer defines the field
attribute that follows an unprotected field on the
screen. A returned value of VARIANT_FALSE
indicates that HostExplorer does not define the
field attribute that follows an unprotected field on
the screen.
This property returns or sets a value that indicates whether HostExplorer automatically copies all selected text to the clipboard. By
default, this property is set to VARIANT_FALSE.
Basic Syntax Boolean = HEProfileEdit.AutoCopy
HEProfileEdit.AutoCopy = Boolean
HRESULT
IHEProfileEdit::put_AutoCopy([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically copies all
selected text to the clipboard. A returned value of
VARIANT_FALSE indicates that HostExplorer does
not automatically copy all selected text to the
clipboard.
Property: IHEProfileEdit::AutoCopyKeepSelection
This property returns or sets a value indicating whether HostExplorer maintains the selection once you have copied or cut text. By
default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileEdit.AutoCopyKeepSelection
Syntax
HEProfileEdit.AutoCopyKeepSelection = Boolean
HRESULT IHEProfileEdit::put_AutoCopyKeepSelection([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer maintains the selection.
A returned value of VARIANT_FALSE indicates that
HostExplorer does not maintain the selection.
Property: IHEProfileEdit::BellMargin
This property creates a beeping sound when the cursor reaches the last column of an input field.
Basic Integer = HEProfileEdit.BellMargin
Syntax
HEProfileEdit.BellMargin = Integer
HRESULT IHEProfileEdit::put_BellMargin([in]
short newVal);
Parameters pVal—The returned value, indicating the last
column.
newVal—The set value, indicating the last
column.
Basic Example Dim SessEd As HEProfileEdit
Set SessEd = Profile.Edit
Dim iVal As Integer
' Get value
iVal = SessEd.BellMargin
If (iVal = 0) Then
' Set value
SessEd.BellMargin = 7
End If
C++ Example IHEProfileEdit *pEdit;
pSess->get_Edit(&pEdit);
short sVal;
pEdit->get_BellMargin(&sVal);
if (sVal == 0)
{
sVal = 7;
pEdit->put_BellMargin(sVal);
}
Property: IHEProfileEdit::CellDelimited
This property enables CSV (Comma Separated Value) and BIF (Binary Interchange File) formats when copying data to the clipboard and
pasting data from other applications. When copying data to the clipboard in Cell Delimited format, HostExplorer can parse screen data at
words or at field attributes. This lets you determine how data appears in cells in your spreadsheet application.
Basic HOSTEX_CELL_DELIMITED =
Syntax HEProfileEdit.CellDelimited
HEProfileEdit.CellDelimited =
HOSTEX_CELL_DELIMITED
C++ HRESULT IHEProfileEdit::get_CellDelimited([out,
Syntax retval] HOSTEX_CELL_DELIMITED *pVal);
HRESULT IHEProfileEdit::put_CellDelimited([in]
HOSTEX_CELL_DELIMITED newVal);
Parameters pVal—The returned value, which indicates how data
appears in cells.
Related Topics
HOSTEX_CELL_DELIMITED Data Type
Property: IHEProfileEdit::ClipFormatBitmap
This property returns or sets a value indicating whether HostExplorer enables bitmap format when copying data to the clipboard. By
default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.ClipFormatBitmap
Syntax
HEProfileEdit.ClipFormatBitmap = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_ClipFormatBitmap([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_ClipFormatBitmap([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables bitmap
format. A returned value of VARIANT_FALSE
indicates that HostExplorer disables the Bitmap
format.
Property: IHEProfileEdit::ClipFormatCSV
This property returns or sets a value indicating whether HostExplorer enables CSV (Comma Separated Value) and BIF (Binary
Interchange File) formats when copying data to the clipboard and pasting data from other applications. CSV and BI are common formats
used by spreadsheet applications. When copying data to the clipboard in Cell Delimited format, HostExplorer can parse screen data at
words or at field attributes. This lets you determine how data appears in cells in your spreadsheet application. By default, this property is
set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.ClipFormatCSV
Syntax
HEProfileEdit.ClipFormatCSV = Boolean
HRESULT IHEProfileEdit::put_ClipFormatCSV([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables CSV and BIF
formats. A returned value of VARIANT_FALSE
indicates that HostExplorer disables CSV and
BIFF formats.
Property: IHEProfileEdit::ClipFormatHE
This property returns or sets a value indicating whether HostExplorer enables its proprietary format when copying data to the clipboard.
By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.ClipFormatHE
Syntax
HEProfileEdit.ClipFormatHE = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_ClipFormatHE([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_ClipFormatHE([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables its proprietary
format when copying data to the clipboard. A
returned value of VARIANT_FALSE indicates that
HostExplorer disables its proprietary format when
copying data to the clipboard.
Property: IHEProfileEdit::ClipFormatPasteLink
This property returns or sets a value indicating whether HostExplorer enables Paste Link format when copying data to the clipboard. By
default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.ClipFormatPasteLink
Syntax
HEProfileEdit.ClipFormatPasteLink = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_ClipFormatPasteLink([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_ClipFormatPasteLink([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables Paste Link
format when copying data to the clipboard. A
returned value of VARIANT_FALSE indicates that
HostExplorer disables Paste Link format.
Property: IHEProfileEdit::ClipFormatRTF
This property returns or sets a value indicating whether HostExplorer enables RTF (Rich Text Format) when copying data to the
clipboard. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.ClipFormatRTF
Syntax
HEProfileEdit.ClipFormatRTF = Boolean
HRESULT IHEProfileEdit::put_ClipFormatRTF([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables RTF when
copying data to the clipboard. A returned value of
VARIANT_FALSE indicates that HostExplorer
disables RTF.
Property: IHEProfileEdit::ClipFormatText
This property returns or sets a value indicating whether HostExplorer enables standard text format for clipboard use. By default, this
property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.ClipFormatText
Syntax
HEProfileEdit.ClipFormatText = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_ClipFormatText([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_ClipFormatText([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables standard text
format for clipboard use. A returned value of
VARIANT_FALSE indicates that HostExplorer
disables standard text format for clipboard use.
Property: IHEProfileEdit::ConvertNulls
This property converts zeros (nulls) to blank characters in input fields when copying and pasting text. By default, this property is set to
VARIANT_FALSE.
Basic Boolean = HEProfileEdit.ConvertNulls
Syntax
HEProfileEdit.ConvertNulls = Boolean
HRESULT IHEProfileEdit::put_ConvertNulls([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the computer converts nulls to
blank characters in input fields. A returned value
of VARIANT_FALSE indicates that the computer
does not convert nulls to blank characters in input
fields.
This property returns or sets a value that specifies whether HostExplorer includes empty fields when copying data in cell-delimited
format.
Basic Boolean = HEProfileEdit.CSVCopyEmptyFields
Syntax
HEProfileEdit.CSVCopyEmptyFields = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_CSVCopyEmptyFields([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_CSVCopyEmptyFields([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer includes empty
fields when copying cell-delimited data. If pVal
equals VARIANT_FALSE, HostExplorer does not
copy empty fields.
Property: IHEProfileEdit::CSVTrimFields
This property returns or sets a value that specifies whether HostExplorer removes leading and trailing blanks when copying or pasting
data in cell-delimited format.
Basic Boolean = HEProfileEdit.CSVTrimFields
Syntax
HEProfileEdit.CSVTrimFields = Boolean
C++ HRESULT IHEProfileEdit::get_CSVTrimFields([out,
Syntax retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_CSVTrimFields([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer removes leading
and trailing blanks when copying or pasting cell-
delimited data. If pVal equals VARIANT_FALSE,
HostExplorer does not remove blanks.
Related Topics
Property: IHEProfileEdit::CellDelimited
Property: IHEProfileEdit::CutChar
This property returns or sets a value indicating how HostExplorer replaces the field-attribute character when you use the Cut application.
Basic Syntax Integer = HEProfileEdit.CutChar
HEProfileEdit.CutChar = Integer
HRESULT
IHEProfileEdit::put_CutChar([in] short
newVal);
Parameters pVal—One of the following returned values, which
indicate how HostExplorer replaces the field-
attribute character:
• 0—None
• 1—Tab
• 2—Comma
• 3—Paragraph
Property: IHEProfileEdit::CutMode
This property returns or sets a value indicating how HostExplorer removes selected text from unprotected areas of the screen.
Basic Syntax Integer = HEProfileEdit.CutMode
HEProfileEdit.CutMode = Integer
HRESULT
IHEProfileEdit::put_CutMode([in] short
newVal);
Parameters pVal—The following returned values specify how
the selected text is removed:
• 0—Replace with Spaces
• 1—Replace with Nulls
• 2—Delete Text
Property: IHEProfileEdit::EntryAssist
This property returns or sets a value indicating whether HostExplorer enables Entry Assist. By default, this property is set to
VARIANT_FALSE.
Basic Boolean = HEProfileEdit.EntryAssist
Syntax
HEProfileEdit.EntryAssist = Boolean
HRESULT IHEProfileEdit::put_EntryAssist([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables Entry Assist.
A returned value of VARIANT_FALSE indicates
that HostExplorer disables Entry Assist.
Property: IHEProfileEdit::InsertResetByAttn
This property lets you determine when the Insert key is toggled on. By default, this property is set to VARIANT_TRUE.
Note: When this property is set to VARIANT_TRUE, the Insert key remains on until you press an action key.
C++ HRESULT
Syntax IHEProfileEdit::get_InsertResetByAttn([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_InsertResetByAttn([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the Insert key is toggled on. A
returned value of VARIANT_FALSE indicates that
the Insert key remains toggled on until you press
the Reset key.
Property: IHEProfileEdit::LeftMargin
This property returns or sets a value specifying the left margin of the screen.
Basic Integer = HEProfileEdit.LeftMargin
Syntax
HEProfileEdit.LeftMargin = Integer
HRESULT IHEProfileEdit::put_LeftMargin([in]
short newVal);
Parameters pVal—The returned value, specifying the left
margin of the screen.
Property: IHEProfileEdit::MoveCursorAfterPaste
This property returns or sets a value indicating whether HostExplorer automatically repositions the cursor after pasting text. By default,
this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.MoveCursorAfterPaste
Syntax
HEProfileEdit.MoveCursorAfterPaste = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_MoveCursorAfterPaste([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_MoveCursorAfterPaste([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically
repositions the cursor after pasting text. A returned
value of VARIANT_FALSE indicates that
HostExplorer does not automatically reposition the
cursor after pasting text.
Property: IHEProfileEdit::MultiLineDelete
This property returns or sets a value indicating whether the Delete and Backspace keys remove characters from the current and
subsequent lines. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileEdit.MultiLineDelete
Syntax
HEProfileEdit.MultiLineDelete = Boolean
HRESULT IHEProfileEdit::put_MultiLineDelete([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the Delete and Backspace keys
remove characters from the current and
subsequent lines. A returned value of
VARIANT_FALSE indicates that the Delete and
Backspace keys remove characters only from the
current line.
newVal—A value of VARIANT_TRUE indicates
that the Delete and Backspace keys remove
characters from the current and subsequent lines.
A value of VARIANT_FALSE indicates that the
Delete and Backspace keys remove characters
only from the current line.
Basic Example Dim SessEd As HEProfileEdit
Set SessEd = Profile.Edit
Dim bVal As Boolean
bVal = SessEd.MultiLineDelete
If (bVal = False) Then
SessEd.MultiLineDelete = True
End If
C++ Example IHEProfileEdit *pEdit;
pSess->get_Edit(&pEdit);
VARIANT_BOOL bVal;
pEdit->get_MultiLineDelete(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pEdit->put_MultiLineDelete(bVal);
}
Property: IHEProfileEdit::MultiLineInsert
This property returns or sets a value indicating whether the Insert key inserts characters on the current and subsequent lines. By default,
this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.MultiLineInsert
Syntax
HEProfileEdit.MultiLineInsert = Boolean
HRESULT IHEProfileEdit::put_MultiLineInsert([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the Insert key inserts characters on
the current and subsequent lines. A returned
value of VARIANT_FALSE indicates that the Insert
key inserts characters and stops when the cursor
reaches the end of the current line.
Property: IHEProfileEdit::NoLockKeyb
This property returns or sets a value indicating whether HostExplorer sends a Never Lock the Keyboard command to the host. By
default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.NoLockKeyb
Syntax
HEProfileEdit.NoLockKeyb = Boolean
HRESULT IHEProfileEdit::put_NoLockKeyb([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer sends a Never Lock
The Keyboard command to the host. A returned
value of VARIANT_FALSE indicates that
HostExplorer does not send a Never Lock The
Keyboard command to the host.
Property: IHEProfileEdit::NumericCharacters
This property returns or sets a string that specifies which characters are valid numeric characters.
Basic String = HEProfileEdit.NumericCharacters
Syntax
HEProfileEdit.NumericCharacters = String
HRESULT IHEProfileEdit::put_NumericCharacters([in]
BSTR newVal);
Parameters pVal—The returned string that lists the valid
numeric characters.
This property returns or sets a value indicating how HostExplorer replaces the field-attribute character when you use the Paste
application.
Basic Integer = HEProfileEdit.PasteChar
Syntax
HEProfileEdit.PasteChar = Integer
HRESULT IHEProfileEdit::put_PasteChar([in]
short newVal);
Parameters pVal—The following returned values specify
how HostExplorer replaces the field-attribute
character:
• 0—None
• 1—Tab
• 2—Comma
• 3—Paragraph
Property: IHEProfileEdit::PasteMode
This property lets you determine how HostExplorer pastes the contents of the clipboard to the current cursor location.
Basic Integer = HEProfileEdit.PasteMode
Syntax
HEProfileEdit.PasteMode = Integer
HRESULT IHEProfileEdit::put_PasteMode([in]
short newVal);
Parameters pVal—The following returned values specify
how HostExplorer pastes the contents of the
clipboard to the current cursor location:
• 0—Replace with Spaces
• 1—Replace with Nulls
• 2—Delete Text
Property: IHEProfileEdit::RemoveTrailingBlankOnCopy
This property returns or sets a value that specifies whether HostExplorer removes all blank characters at the end of the text when
copying text. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileEdit.RemoveTrailingBlankOnCopy
Syntax
HEProfileEdit.RemoveTrailingBlankOnCopy = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_RemoveTrailingBlankOnCopy([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_RemoveTrailingBlankOnCopy([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer removes trailing
blanks when copying text. If pVal equals
VARIANT_FALSE, HostExplorer does not remove
trailing blanks.
Property: IHEProfileEdit::RespectNumeric
This property returns or sets a value indicating whether HostExplorer forces data entry on numeric fields to be validated. By default, this
property is set to VARIANT_FALSE.
Basic Boolean = HEProfileEdit.RespectNumeric
Syntax
HEProfileEdit.RespectNumeric = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_RespectNumeric([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_RespectNumeric([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer forces data entry on
numeric fields to be validated. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not force data entry on numeric fields to be
validated.
Property: IHEProfileEdit::RightMargin
This property returns or sets a value specifying the right margin of the screen.
Basic Integer = HEProfileEdit.RightMargin
Syntax
HEProfileEdit.RightMargin = Integer
HRESULT IHEProfileEdit::put_RightMargin([in]
short newVal);
Parameters pVal—The returned value specifying the right
margin of the screen.
Property: IHEProfileEdit::WordWrap
This property returns or sets a value indicating whether HostExplorer cuts text upon reaching the end of a field or wraps text to the next
available field. By default, this property is set to VARIANT_TRUE.
Basic Syntax Boolean = HEProfileEdit.WordWrap
HEProfileEdit.WordWrap = Boolean
HRESULT
IHEProfileEdit::put_WordWrap([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer wraps text to the next
available field. A returned value of
VARIANT_FALSE indicates that HostExplorer cuts
text when it reaches the end of a field.
Related Topics
Property: IHEProfileEdit::WordWrapWithNewLineReturn
Property: IHEProfileEdit::WordWrapWithNewLineReturn
This property returns or sets a value indicating whether HostExplorer—upon reaching the end of a field—truncates text or wraps text to
the next available field and inserts a carriage return. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileEdit.WordWrapWithNewLineReturn
Syntax
HEProfileEdit.WordWrapWithNewLineReturn = Boolean
C++ HRESULT
Syntax IHEProfileEdit::get_WordWrapWithNewLineReturn([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileEdit::put_WordWrapWithNewLineReturn([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer wraps text to the
next available field and inserts a carriage return
when it encounters the end of a field. If pVal
equals VARIANT_FALSE, HostExplorer truncates
text when it encounters the end of a field.
Related Topics
Property: IHEProfileEdit::WordWrap
ProfileColor Interface
The ProfileColor interface lets you set configuration settings related to color.
Methods
The ProfileColor interface contains the following methods:
SystemColor
Properties
The ProfileColor interface consists of the following properties:
Schemes
Method: IHEProfileColor::SystemColor
This method lets you specify a customized color for a particular system color block. You can specify the color in terms of a percentage
for each of its red, blue, and green components.
Basic HEProfileColor.SystemColor(iColor As
Syntax Integer, iRed As Integer, iGreen As
Integer, iBlue As Integer)
C++ HRESULT IHEProfileColor::SystemColor([in]
Syntax short iColor, [in] short iRed, [in] short
iGreen, [in] short iBlue);
Parameters iColor—The index number of the color block you
want to change. iColor can range from 1 to 16.
Property: IHEProfileColor::Schemes
This property returns or sets a string that specifies the name of the color scheme for the current session. A scheme is a collection of
settings.
Basic String = HEProfileColor.Schemes
Syntax
HEProfileColor.Schemes = String
HRESULT IHEProfileColor::put_Schemes([in]
BSTR newVal);
Parameters pVal—The returned value, which indicates the color
scheme.
ProfileFileTransfer Interface
The ProfileFileTransfer interface lets you set configuration settings related to transferring files.
Properties
The ProfileFileTransfer interface consists of the following properties:
Append ShowRecvDlg
ASCII UploadHostFileName
AutoCC UploadPCFileName
AutoClearMonitor UploadTranslate
BlkSize UserDefinedDownload
CRLF UserDefinedUpload
CustomTransferTable VTAutoClearMonitor
DefaultDownloadPath XferBlockSize
DefaultProtocol XferDest
DefaultRecvDir XferHostCodePage
DefaultUploadPath XferPCCodePage
DownloadHostFileName XferSource
DownloadPCFileName XferStartAction
DownloadTranslate Xm1KPacket
ExtraOptions XmAckTimeout
FileExistAction XmCRC
Host YmAckTimeout
INDFileName YmUseFullPath
KmBinaryPrefix ZmAutoDownload
KmRLE ZmCrashRecovery
KmTextMode ZmMaxErrors
KmUseFullPath ZmOverwriteMngmt
Lrecl ZmSlideWindow
QuickMode ZmUseFullPath
Recfm ZmWindowSize
Schemes
Property: IHEProfileFileTransfer::Append
This property returns or sets a value indicating whether HostExplorer appends a file to an existing file on the host.
Basic Boolean = HEProfileFileTransfer.Append
Syntax
HEProfileFileTransfer.Append = Boolean
HRESULT IHEProfileFileTransfer::put_Append([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer appends the file. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not append the file.
Property: IHEProfileFileTransfer::ASCII
This property returns or sets a value indicating whether HostExplorer translates an ASCII (a character set used on a personal computer)
file to an EBCDIC (an IBM host character set) file.
Basic Boolean = HEProfileFileTransfer.Ascii
Syntax
HEProfileFileTransfer.Ascii = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_Ascii([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_Ascii([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer translates an ASCII
file to an EBCDIC file. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not translate an ASCII file to an EBCDIC
file.
Property: IHEProfileFileTransfer::AutoCC
This property returns or sets a value indicating whether HostExplorer converts carriage control on the host to carriage control on your
computer. This property applies only when you download files from the host.
Basic Boolean = HEProfileFileTransfer.AutoCC
Syntax
HEProfileFileTransfer.AutoCC = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_AutoCC([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_AutoCC([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer converts carriage
control on the host to carriage control on your
computer. A returned value of VARIANT_FALSE
indicates that HostExplorer does not convert
carriage control on the host to carriage control on
your computer.
Property: IHEProfileFileTransfer::AutoClearMonitor
This property returns or sets a value indicating whether HostExplorer automatically exits the File Transfer Monitor when it has finished
transferring a file.
Basic Boolean = HEProfileFileTransfer.AutoClearMonitor
Syntax
HEProfileFileTransfer.AutoClearMonitor = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_AutoClearMonitor([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_AutoClearMonitor([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically exits the
File Transfer Monitor. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not automatically exit the File Transfer
Monitor.
Property: IHEProfileFileTransfer::BlkSize
This property returns or sets a value indicating the block size that HostExplorer uses when it transfers files. The size of the block ranges
from 256 bytes to 32768 bytes. By default, this property is set to 2048 bytes.
Basic Long = HEProfileFileTransfer.BlkSize
Syntax
HEProfileFileTransfer.BlkSize = Long
HRESULT IHEProfileFileTransfer::put_BlkSize([in]
long newVal);
Parameters pVal—The returned value, which indicates the
block size of a file.
Property: IHEProfileFileTransfer::CRLF
This property returns or sets a value indicating whether HostExplorer translates CR/LF (carriage return/line feed) characters to records
on the host file system. This property is normally required when you transfer text files.
Basic Boolean = HEProfileFileTransfer.CRLF
Syntax
HEProfileFileTransfer.CRLF = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_CRLF([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_CRLF([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer translates CR/LF
characters. A returned value of VARIANT_FALSE
indicates that HostExplorer does not translate
CR/LF characters.
Property: IHEProfileFileTransfer::CustomTransferTable
This property returns or sets a string that specifies the full path and file name of the custom transfer table. The custom transfer table is
an .ini file that lists the translation settings that HostExplorer uses when transferring data between the host and PC.
Basic String = HEProfileFileTransfer.CustomTransferTable
Syntax
HEProfileFileTransfer.CustomTransferTable = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_CustomTransferTable([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_CustomTransferTable([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the path and
file name of the custom transfer table.
newVal—The set string, specifying the path and file
name of the custom transfer table that you want
HostExplorer to use.
Basic Example Dim SessXfr As HEProfileFileTransfer
Set SessXfr = Profile.FileTransfer
Dim strVal As String
strVal = SessXfr.CustomTransferTable
If (Len(strVal) = 0) Then
SessXfr.CustomTransferTable =
"C:\Mydata\cxfer.ini"
End If
C++ IHEProfileFileTransfer *pXfr;
Example pSess->get_FileTransfer(&pXfr);
BSTR bstr;
pXfr->get_CustomTransferTable(&bstr);
if (strlen(OLE2A(bstr)) == 0)
{
if (bstr != NULL)
SysFreeString(bstr);
bstr = SysAllocString(OLESTR("C:\Mydata\cxfer.ini"));
pXfr->put_CustomTransferTable(bstr);
SysFreeString(bstr);
}
Property: IHEProfileFileTransfer::DefaultDownloadPath
This property returns or sets a string specifying the default directory for downloaded files.
Basic String = HEProfileFileTransfer.DefaultDownloadPath
Syntax
HEProfileFileTransfer.DefaultDownloadPath = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_DefaultDownloadPath([out,
retval] BSTR *pVal);
HRESULT
IHEProfileFileTransfer::put_DefaultDownloadPath([in] BSTR
newVal);
Parameters pVal—The returned string, specifying the default
download directory.
Property: IHEProfileFileTransfer::DefaultProtocol
This property returns or sets a value indicating the default file-transfer protocol.
Basic Integer = HEProfileFileTransfer.DefaultProtocol
Syntax
HEProfileFileTransfer.DefaultProtocol = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_DefaultProtocol([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_DefaultProtocol([in]
short newVal);
Parameters pVal—The following returned values indicate the
default file-transfer protocol:
• 0—Xmodem
• 1—Ymodem
• 2—Kermit
• 3—Zmodem
Property: IHEProfileFileTransfer::DefaultRecvDir
This property returns or sets a string indicating the default directory for received files.
Basic String = HEProfileFileTransfer.DefaultRecvDir
Syntax
HEProfileFileTransfer.DefaultRecvDir = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_DefaultRecvDir([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_DefaultRecvDir([in]
BSTR newVal);
Parameters pVal—The returned string, which indicates the
default receive directory.
Property: IHEProfileFileTransfer::DefaultUploadPath
This property returns or sets a string specifying the default directory for uploaded files.
Basic String = HEProfileFileTransfer.DefaultUploadPath
Syntax
HEProfileFileTransfer.DefaultUploadPath = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_DefaultUploadPath([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_DefaultUploadPath([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the default
upload directory.
Property: IHEProfileFileTransfer::DownloadHostFileName
This property returns or sets a string specifying the name of a host file to download to your computer.
Basic String = HEProfileFileTransfer.DownloadHostFileName
Syntax
HEProfileFileTransfer.DownloadHostFileName = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_DownloadHostFileName([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_DownloadHostFileName([in]
BSTR newVal);
Parameters pVal—The returned string specifying the name of a
host file to download.
Property: IHEProfileFileTransfer::DownloadPCFileName
This property returns or sets a string specifying the file name to which HostExplorer saves a downloaded file on your computer.
Basic String = HEProfileFileTransfer.DownloadPCFileName
Syntax
HEProfileFileTransfer.DownloadPCFileName = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_DownloadPCFileName([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_DownloadPCFileName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the file name to
which HostExplorer saves a downloaded file.
Property: IHEProfileFileTransfer::DownloadTranslate
This property returns or sets the Download section of the Custom Transfer Table. The Download section specifies the Host-to-PC
translation settings in the following form:
hx=px
where hx is a host value in hexadecimal format and px is the same value on the PC in hexadecimal format.
The Download section must define translations for all values between 00 and FF inclusive; use a semicolon to separate successive
translations.
Basic String = HEProfileFileTransfer.DownloadTranslate
Syntax
HEProfileFileTransfer.DownloadTranslate = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_DownloadTranslate([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_DownloadTranslate([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the Download
section of the Custom Transfer Table.
Related Topics
Property: IHEProfileFileTransfer::CustomTransferTable
Property: IHEProfileFileTransfer::UploadTranslate
Property: IHEProfileFileTransfer::ExtraOptions
This property returns or sets a string specifying options that are specific to the operating system. You must specify these custom options
in the appropriate format.
Basic String = HEProfileFileTransfer.ExtraOptions
Syntax
HEProfileFileTransfer.ExtraOptions = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_ExtraOptions([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_ExtraOptions([in]
BSTR newVal);
Parameters pVal—The returned string, specifying options that
are specific to the operating system.
Property: IHEProfileFileTransfer::FileExistAction
This property returns or sets a string specifying what action HostExplorer performs if the name of a downloaded file already exists in the
destination directory.
Basic Integer = HEProfileFileTransfer.FileExistAction
Syntax
HEProfileFileTransfer.FileExistAction = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_FileExistAction([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_FileExistAction([in]
short newVal);
Parameters pVal—One of the following returned values,
which indicates the action to perform if the name
of a downloaded file already exists in the
destination directory:
• 0—Overwrite
• 1—Rename
• 2—Skip
Property: IHEProfileFileTransfer::Host
This property returns or sets a value indicating the operating system run by the host.
Basic Integer = HEProfileFileTransfer.Host
Syntax
HEProfileFileTransfer.Host = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_Host([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_Host([in]
short newVal);
Parameters pVal—One of the following returned values,
indicating the address of the current host:
• 257—CMS
• 258—TSO/MUSIC
• 259—CICS
Property: IHEProfileFileTransfer::INDFILEName
This property returns or sets a string specifying the name of the file-transfer program to use when uploading and/or downloading files.
Basic String = HEProfileFileTransfer.INDFILEName
Syntax
HEProfileFileTransfer.INDFILEName = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_INDFILEName([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_INDFILEName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the name of
the file-transfer program.
Property: IHEProfileFileTransfer::KmBinaryPrefix
This property returns or sets a value indicating whether HostExplorer attempts to send 8-bit data characters over a 7-bit channel by
prefixing non-printable characters (that is, using a binary prefix).
Basic Boolean = HEProfileFileTransfer.KmBinaryPrefix
Syntax
HEProfileFileTransfer.KmBinaryPrefix = Boolean
HRESULT IHEProfileFileTransfer::put_KmBinaryPrefix([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer attempts to send 8-bit
data characters over a 7-bit channel. A returned
value of VARIANT_FALSE indicates that
HostExplorer does not attempt to send 8-bit
characters over a 7-bit channel.
Property: IHEProfileFileTransfer::KmRLE
This property returns or sets a value indicating whether HostExplorer uses run-length limited encoding (RLL) to compress data, thereby
transferring files more efficiently. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileFileTransfer.KmRLE
Syntax
HEProfileFileTransfer.KmRLE = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_KmRLE([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_KmRLE([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer uses RLL. A returned
value of VARIANT_FALSE indicates that
HostExplorer does not use RLL.
Property: IHEProfileFileTransfer::KmTextMode
This property returns or sets a value indicating whether HostExplorer strips the upper bit of each byte as it is received, thus preventing
any non-ASCII characters from being saved.
Basic Boolean = HEProfileFileTransfer.KmTextMode
Syntax
HEProfileFileTransfer.KmTextMode = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_KmTextMode([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_KmTextMode([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer strips the upper bit of
each byte and saves only ASCII characters. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not strip the upper bit of each
byte and saves non-ASCII characters.
Property: IHEProfileFileTransfer::KmUseFullPath
This property returns or sets a value indicating whether HostExplorer saves a file to the current UNIX host directory. This property also
lets you keep the entire path name as the file name.
Basic Boolean = HEProfileFileTransfer.KmUseFullPath
Syntax
HEProfileFileTransfer.KmUseFullPath = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_KmUseFullPath([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_KmUseFullPath([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer saves a file to the
current UNIX host directory, and keeps the entire
pathname as the file name. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not save a file to the current UNIX host
directory, and does not keep the entire pathname
as the file name.
Property: IHEProfileFileTransfer::Lrecl
This property returns or sets a value indicating the logical record size of a file that you send to the host.
Basic Long = HEProfileFileTransfer.Lrecl
Syntax
HEProfileFileTransfer.Lrecl = Long
HRESULT IHEProfileFileTransfer::put_Lrecl([in]
long newVal);
Parameters pVal—The returned value, which indicates the
logical record size of a file.
Property: IHEProfileFileTransfer::QuickMode
This property returns or sets a value indicating the file-transfer mode (text, binary, or custom).
Basic Integer = HEProfileFileTransfer.QuickMode
Syntax
HEProfileFileTransfer.QuickMode = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_QuickMode([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_QuickMode([in]
short newVal);
Parameters pVal—The following returned values indicate the
file-transfer mode:
• 0—Text
• 1—Binary
• 2—Custom
Property: IHEProfileFileTransfer::Recfm
This property returns or sets a value indicating the type of record format (default, fixed, or variable) to use when you transfer a file.
Basic Integer = HEProfileFileTransfer.Recfm
Syntax
HEProfileFileTransfer.Recfm = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_Recfm([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_Recfm([in]
short newVal);
Parameters pVal—The following returned values indicate the
type of record format:
• 253—Default
• 254—Fixed
• 255—Variable
• 256—Undefined
Property: IHEProfileFileTransfer::Schemes
This property returns or sets a string that specifies the name of the file transfer scheme for the current session. A scheme is a collection
of settings.
Basic String = HEProfileFileTransfer.Schemes
Syntax
HEProfileFileTransfer.Schemes = String
HRESULT IHEProfileFileTransfer::put_Schemes([in]
BSTR newVal);
Parameters pVal—The returned value, specifying the file
transfer scheme.
Property: IHEProfileFileTransfer::ShowRecvDlg
This property returns or sets a value indicating whether the Receive File dialog box opens each time you receive a file.
Basic Boolean = HEProfileFileTransfer.ShowRecvDlg
Syntax
HEProfileFileTransfer.ShowRecvDlg = Boolean
HRESULT IHEProfileFileTransfer::put_ShowRecvDlg([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the Receive File dialog box opens
each time you receive a file. A returned value of
VARIANT_FALSE indicates that a file begins to be
transferred as soon as you select Receive File
From Host from the menu. In this case, for the
transfer to complete properly, you must have
previously selected a default receive directory
and a default protocol.
Property: IHEProfileFileTransfer::UploadHostFileName
This property returns or sets a string specifying the name HostExplorer applies to a file uploaded on the host.
Basic String = HEProfileFileTransfer.UploadHostFileName
Syntax
HEProfileFileTransfer.UploadHostFileName = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_UploadHostFileName([out,
retval] BSTR *pVal);
HRESULT IHEProfileFileTransfer::put_UploadHostFileName([in]
BSTR newVal);
Parameters pVal—The returned string specifying the name
HostExplorer applies to a file uploaded on the host.
Property: IHEProfileFileTransfer::UploadPCFileName
This property returns or sets a string specifying the name HostExplorer applies to a file uploaded on your computer.
Basic String = HEProfileFileTransfer.UploadPCFileName
Syntax
HEProfileFileTransfer.UploadPCFileName = String
C++ HRESULT
Syntax IHEProfileFileTransfer::get_UploadPCFileName([out,
retval] BSTR *pVal);
HRESULT
IHEProfileFileTransfer::put_UploadPCFileName([in] BSTR
newVal);
Parameters pVal—The returned string, specifying the name
HostExplorer applies to a file uploaded on your
computer.
Property: IHEProfileFileTransfer::UploadTranslate
This property returns or sets the Upload section of the Custom Transfer Table. The Upload section specifies the PC-to-Host translation
settings in the following form:
px=hx
where px is a PC value in hexadecimal format and hx is the same value on the host in hexadecimal format.
The Upload section must define translations for all values between 00 and FF inclusive; use a semicolon to separate successive
translations.
Basic String = HEProfileFileTransfer.UploadTranslate
Syntax
HEProfileFileTransfer.UploadTranslate = String
HRESULT IHEProfileFileTransfer::put_UploadTranslate([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the Upload
section of the Custom Transfer Table.
Related Topics
Property: IHEProfileFileTransfer::CustomTransferTable
Property: IHEProfileFileTransfer::DownloadTranslate
Property: IHEProfileFileTransfer::UserDefinedDownload
This property returns or sets a value indicating whether HostExplorer performs a user-defined download or a default download.
Basic Boolean = HEProfileFileTransfer.UserDefinedDownload
Syntax
HEProfileFileTransfer.UserDefinedDownload = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_UserDefinedDownload([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileFileTransfer::put_UserDefinedDownload([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates a user-defined download. A returned
value of VARIANT_FALSE indicates a default
download.
Property: IHEProfileFileTransfer::UserDefinedUpload
This property returns or sets a value indicating whether HostExplorer performs a user-defined upload or a default upload.
Basic Boolean = HEProfileFileTransfer.UserDefinedUpload
Syntax
HEProfileFileTransfer.UserDefinedUpload = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_UserDefinedUpload([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_UserDefinedUpload([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates a user-defined upload. A returned value
of VARIANT_FALSE indicates a default upload.
Property: IHEProfileFileTransfer::VTAutoClearMonitor
This property returns or sets a value that specifies whether HostExplorer automatically exits the File Transfer Monitor upon completing a
file transfer. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileFileTransfer.VTAutoClearMonitor
Syntax
HEProfileFileTransfer.VTAutoClearMonitor = Boolean
HRESULT IHEProfileFileTransfer::put_VTAutoClearMonitor([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer automatically exits
the File Transfer Monitor upon completing a file
transfer. If pVal equals VARIANT_FALSE,
HostExplorer does not exit the File Transfer
monitor.
newVal—The set value. Set newVal to
VARIANT_TRUE to ensure that HostExplorer
automatically exits the File Transfer Monitor upon
completing a file transfer. Set newVal to
VARIANT_FALSE if you do not want HostExplorer
to exit the File Transfer Monitor upon completing a
file transfer.
Basic Dim SessXfr As HEProfileFileTransfer
Example Set SessXfr = Profile.FileTransfer
Dim bVal As Boolean
' Get value
bVal = SessXfr.VTAutoClearMonitor
If (bVal = False) Then
' Set value
SessXfr.VTAutoClearMonitor = True
End If
C++ Example IHEProfileFileTransfer *pXfr;
pSess->get_FileTransfer(&pXfr);
VARIANT_BOOL bVal;
pXfr->get_VTAutoClearMonitor(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pXfr->put_VTAutoClearMonitor(bVal);
}
Property: IHEProfileFileTransfer::XferBlockSize
This property returns or sets a value specifying the block size that HostExplorer uses when you transfer files. You can select a block size
between 256 and 32768 bytes. By default, this property is set to 2048.
Basic Integer = HEProfileFileTransfer.XferBlockSize
Syntax
HEProfileFileTransfer.XferBlockSize = Integer
HRESULT IHEProfileFileTransfer::put_XferBlockSize([in]
short newVal);
Parameters pVal—The returned value, specifying the block
size that HostExplorer uses when you transfer
files.
Property: IHEProfileFileTransfer::XferDest
This property returns or sets a value indicating whether a file is being transferred to a file system or the clipboard.
Basic Integer = HEProfileFileTransfer.XferDest
Syntax
HEProfileFileTransfer.XferDest = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_XferDest([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_XferDest([in]
short newVal);
Parameters pVal—The following returned values specify
where a file is being transferred:
• 430—File system
• 431—Clipboard
Property: IHEProfileFileTransfer::XferHostCodePage
This property returns or sets a value indicating the code page for the host data file.
Basic Integer = HEProfileFileTransfer.XferHostCodePage
Syntax
HEProfileFileTransfer.XferHostCodePage = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_XferHostCodePage([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_XferHostCodePage([in]
short newVal);
Parameters pVal—The following returned values indicate the
code page for the host data file:
• 0—Austrian (273)
• 1—Belgian (037)
• 2—Brazilian (037)
• 3—Canadian French (037)
• 4—Danish (277)
• 5—English UK (285)
• 6—English US (1047)
• 7—English US (037)
• 8—Finnish (278)
• 9—French (297)
• 10—German (273)
• 11—Italian (280)
• 12—Multinational (500)
• 13—Dutch (037)
• 14—Norwegian (277)
• 15—Portuguese (037)
• 16—Spanish (Latin America)
• 17—Swedish (278)
Property: IHEProfileFileTransfer::XferPCCodePage
This property returns or sets a value specifying the code page for a data file on your computer. This value determines the location of non-
ASCII characters such as é. Windows uses the ANSI (American National Standards Institute) code page; DOS systems use other code
pages.
Basic Integer = HEProfileFileTransfer.XferPCCodePage
Syntax
HEProfileFileTransfer.XferPCCodePage = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_XferPCCodePage([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_XferPCCodePage([in]
short newVal);
Parameters pVal—One of the following returned values,
indicating the code page for a data file on your
computer:
• 0—ANSI (Latin-1) (1252/819)
• 1—English US (437)
• 2—Canadian French (863)
• 3—Western European/Latin 1 (850)
Property: IHEProfileFileTransfer::XferSource
This property returns or sets a value indicating whether a file has been transferred from a file system or the clipboard.
Basic Integer = HEProfileFileTransfer.XferSource
Syntax
HEProfileFileTransfer.XferSource = Integer
HRESULT IHEProfileFileTransfer::put_XferSource([in]
short newVal);
Parameters pVal—The following returned values specify
where a file has been transferred from:
• 430—File system
• 431—Clipboard
Property: IHEProfileFileTransfer::XferStartAction
This property returns or sets a value indicating how HostExplorer performs before uploading or downloading a file.
Basic Integer = HEProfileFileTransfer.XferStartAction
Syntax
HEProfileFileTransfer.XferStartAction = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_XferStartAction([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_XferStartAction([in]
short newVal);
Parameters pVal—The following returned values indicate
how HostExplorer performs before uploading or
downloading a file:
• 200—No Action
• 201—Home
• 202—Enter
• 203—Clear
Property: IHEProfileFileTransfer::Xm1KPacket
This property returns or sets a value indicating whether HostExplorer uses 1024 or 128 bytes as the packet size. Using 1024 bytes is
good practice because it is faster. You may find the 128-byte setting useful if you have a communication problem such as a noisy
telephone line.
Basic Boolean = HEProfileFileTransfer.Xm1KPacket
Syntax
HEProfileFileTransfer.Xm1KPacket = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_Xm1KPacket([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_Xm1KPacket([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer uses 1024 bytes as
the packet size. A returned value of
VARIANT_FALSE indicates that HostExplorer
uses 128 bytes as the packet size.
Property: IHEProfileFileTransfer::XmAckTimeout
This property returns or sets a value specifying the length of time in milliseconds before a file transfer times out. Transfer delays are
common. If a delay becomes too long, HostExplorer cancels the transfer, allowing you to try again later.
Basic Long = HEProfileFileTransfer.XmAckTimeout
Syntax
HEProfileFileTransfer.XmAckTimeout = Long
C++ HRESULT
Syntax IHEProfileFileTransfer::get_XmAckTimeout([out,
retval] long *pVal);
HRESULT IHEProfileFileTransfer::put_XmAckTimeout([in]
long newVal);
Parameters pVal—The returned value, specifying the length
of time before a file transfer times out.
Property: IHEProfileFileTransfer::XmCRC
This property returns or sets a value indicating whether HostExplorer enables CRC (Cyclical Redundancy Check) to detect errors.
Basic Boolean = HEProfileFileTransfer.XmCRC
Syntax
HEProfileFileTransfer.XmCRC = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_XmCRC([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_XmCRC([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables CRC. A
returned value of VARIANT_FALSE indicates that
HostExplorer uses Checksum to check errors.
(Use Checksum only when communicating with
older Xmodem products.)
Property: IHEProfileFileTransfer::YmAckTimeout
This property returns or sets a value specifying the length of time in milliseconds before a file transfer times out. Transfer delays are
common. If a delay becomes too long, HostExplorer cancels the transfer, allowing you to try again later.
Basic Long = HEProfileFileTransfer.YmAckTimeout
Syntax
HEProfileFileTransfer.YmAckTimeout = Long
HRESULT IHEProfileFileTransfer::put_YmAckTimeout([in]
long newVal);
Parameters pVal—The returned value, specifying the length
of time before a file transfer times out.
Property: IHEProfileFileTransfer::YmUseFullPath
This property returns or sets a value indicating whether HostExplorer saves a file to the current UNIX host directory and lets you keep
the entire path name as the file name.
Basic Boolean = HEProfileFileTransfer.YmUseFullPath
Syntax
HEProfileFileTransfer.YmUseFullPath = Boolean
HRESULT IHEProfileFileTransfer::put_YmUseFullPath([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer saves a file to the
current UNIX host directory and keeps the entire
pathname as the filename. A returned value of
VARIANT_FALSE indicates that HostExplorer
excludes the directory path from the file name.
Property: IHEProfileFileTransfer::ZmAutoDownload
This property returns or sets a value indicating whether HostExplorer detects the initial header of a request to receive files and
automatically starts the receiving process.
Basic Boolean = HEProfileFileTransfer.ZmAutoDownload
Syntax
HEProfileFileTransfer.ZmAutoDownload = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_ZmAutoDownload([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_ZmAutoDownload([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer detects the initial
header of a request to receive files and
automatically starts the receiving process. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not detect the initial header of
a request to receive files and does not
automatically start the receiving process.
Property: IHEProfileFileTransfer::ZmCrashRecovery
This property returns or sets a value indicating whether HostExplorer sets a computer to automatically resume receiving files if the
computer crashed when the files were being transferred.
Basic Boolean = HEProfileFileTransfer.ZmCrashRecovery
Syntax
HEProfileFileTransfer.ZmCrashRecovery = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_ZmCrashRecovery([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_ZmCrashRecovery([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer sets a computer to
automatically resume receiving files. A returned
value of VARIANT_FALSE indicates that a
computer does not automatically resume receiving
files.
newVal—A value of VARIANT_TRUE indicates
that HostExplorer sets a computer to
automatically resume receiving files. A value of
VARIANT_FALSE indicates that a computer does
not automatically resume receiving files.
Basic Example Dim SessXfr As HEProfileFileTransfer
Set SessXfr = Profile.FileTransfer
Dim bVal As Boolean
' Get value
bVal = SessXfr.ZmCrashRecovery
If (bVal = False) Then
' Set value
SessXfr.ZmCrashRecovery = True
End If
C++ Example IHEProfileFileTransfer *pXfr;
pSess->get_FileTransfer(&pXfr);
VARIANT_BOOL bVal;
pXfr->get_ZmCrashRecovery(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pXfr->put_ZmCrashRecovery(bVal);
}
Property: IHEProfileFileTransfer::ZmMaxErrors
This property returns or sets a value indicating how many times HostExplorer attempts to recover from errors before canceling a file
transfer.
Basic Integer = HEProfileFileTransfer.ZmMaxErrors
Syntax
HEProfileFileTransfer.ZmMaxErrors = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_ZmMaxErrors([out,
retval] short *pVal);
HRESULT IHEProfileFileTransfer::put_ZmMaxErrors([in]
short newVal);
Parameters pVal—The returned value, which indicates how
many times HostExplorer attempts to recover
from errors before canceling a file transfer.
Property: IHEProfileFileTransfer::ZmOverwriteMngmt
This property returns or sets a value specifying how files are written to the host. In order for this feature to function properly, the
receiving host must also support this feature.
Basic Integer = HEProfileFileTransfer.ZmOverwriteMngmt
Syntax
HEProfileFileTransfer.ZmOverwriteMngmt = Integer
C++ HRESULT
Syntax IHEProfileFileTransfer::get_ZmOverwriteMngmt([out,
retval] short *pVal);
HRESULT
IHEProfileFileTransfer::put_ZmOverwriteMngmt([in] short
newVal);
Parameters pVal—One of the following returned values,
specifying how files are written to the host:
• 0—Newer or longer
• 1—Append
• 2—Always overwrite
• 3—File size or date differ
• 4—Never overwrite
• 5—Newer
Property: IHEProfileFileTransfer::ZmSlideWindow
This property returns or sets a value indicating whether HostExplorer uses the Sliding Window option to send all files simultaneously. By
default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileFileTransfer.ZmSlideWindow
Syntax
HEProfileFileTransfer.ZmSlideWindow = Boolean
C++ HRESULT
Syntax IHEProfileFileTransfer::get_ZmSlideWindow([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileFileTransfer::put_ZmSlideWindow([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer sends all files
simultaneously using the Sliding Window option.
A returned value of VARIANT_FALSE indicates
that HostExplorer sends files without using the
Sliding Window option.
Property: IHEProfileFileTransfer::ZmUseFullPath
This property returns or sets a value indicating whether HostExplorer saves a file to the current UNIX host directory and lets you keep
the entire pathname as the file name.
Basic Boolean = HEProfileFileTransfer.ZmUseFullPath
Syntax
HEProfileFileTransfer.ZmUseFullPath = Boolean
HRESULT IHEProfileFileTransfer::put_ZmUseFullPath([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer saves a file to the
current UNIX host directory, and keeps the entire
pathname as the file name. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not save a file to the current UNIX host
directory.
Property: IHEProfileFileTransfer::ZmWindowSize
This property returns or sets a value indicating the byte size of files transferred using the Sliding Window option. By default,
HostExplorer sends 8192 bytes at a time, thereby allowing the receiver enough time to receive the data.
Basic Integer = HEProfileFileTransfer.ZmWindowSize
Syntax
HEProfileFileTransfer.ZmWindowSize = Integer
HRESULT IHEProfileFileTransfer::put_ZmWindowSize([in]
short newVal);
Parameters pVal—The returned value, which indicates the
byte size of files transferred using the Sliding
Window option.
ProfileSecurity Interface
The ProfileSecurity interface lets you set configuration settings related to security.
Properties
The ProfileSecurity interface consists of the following properties:
Kerberos
KerberosAltName
KerberosEncryption
KerberosForwardTkt
KerberosVersion
SecurityOption
Property: IHEProfileSecurity::Kerberos
This property returns or sets a value indicating whether HostExplorer uses Kerberos as a network authentication protocol.
Basic Boolean = HEProfileSecurity.Kerberos
Syntax
HEProfileSecurity.Kerberos = Boolean
C++ HRESULT
Syntax IHEProfileSecurity::get_Kerberos([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSecurity::put_Kerberos([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer uses Kerberos as a
network authentication protocol. A returned value
of VARIANT_FALSE indicates that HostExplorer
does not use Kerberos as a network
authentication protocol.
This property returns or sets a string that specifies the alternate user name when you are setting Kerberos authentication.
Basic String = HEProfileSecurity.KerberosAltName
Syntax
HEProfileSecurity.KerberosAltName = String
C++ HRESULT
Syntax IHEProfileSecurity::get_KerberosAltName([out,
retval] BSTR *pVal);
HRESULT IHEProfileSecurity::put_KerberosAltName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the
alternate Kerberos user name.
Property: IHEProfileSecurity::KerberosEncryption
This property returns or sets a value that specifies whether you need to use Kerberos encryption for your current session.
Basic Boolean = HEProfileSecurity.KerberosEncryption
Syntax
HEProfileSecurity.KerberosEncryption = Boolean
C++ HRESULT
Syntax IHEProfileSecurity::get_KerberosEncryption([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSecurity::put_KerberosEncryption([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that you need to use Kerberos encryption
for your current session. A returned value of
VARIANT_FALSE indicates that you do not need to
use Kerberos encryption for your current session.
Property: IHEProfileSecurity::KerberosForwardTkt
This property returns or sets a value that enables or disables Kerberos ticket forwarding.
Basic Boolean = HEProfileSecurity.KerberosForwardTkt
Syntax
HEProfileSecurity.KerberosForwardTkt = Boolean
C++ HRESULT
Syntax IHEProfileSecurity::get_KerberosForwardTkt([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSecurity::put_KerberosForwardTkt([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that Kerberos ticket forwarding is
enabled. A returned value of VARIANT_FALSE
indicates that Kerberos ticket forwarding is
disabled.
Property: IHEProfileSecurity::KerberosVersion
This property returns or sets the Kerberos version for the current session.
Basic Integer = HEProfileSecurity.KerberosVersion
Syntax
HEProfileSecurity.KerberosVersion = Integer
C++ HRESULT
Syntax IHEProfileSecurity::get_KerberosVersion([out,
retval] short *pVal);
HRESULT IHEProfileSecurity::put_KerberosVersion([in]
short newVal);
Parameters pVal—The returned value, which indicates the
Kerberos version of the current session.
Property: IHEProfileSecurity::SecurityOption
This property returns or sets a value that specifies the method for securing the traffic between the server and the client.
Basic HOSTEX_SECURITY_OPTIONS =
Syntax HEProfileSecurity.SecurityOption
HEProfileSecurity.SecurityOption =
HOSTEX_SECURITY_OPTIONS
C++ HRESULT IHEProfileSecurity::get_SecurityOption([out,
Syntax retval] HOSTEX_SECURITY_OPTIONS *pVal);
HRESULT IHEProfileSecurity::put_SecurityOption([in]
HOSTEX_SECURITY_OPTIONS newVal);
Parameters pVal—The returned value, specifying the security
option.
Set Profile =
CreateObject("HEProfile.HEProfile")
Set Security = Profile.Security
SecurityVal = Security.SecurityOption
C++ Example IHEProfile *pProfile;
IHEProfileSecurity *pSecurity;
HOSTEX_SECURITY_OPTIONS SecurityOption;
if (SUCCEEDED(hr))
{
pProfile->get_Security(&pSecurity);
pSecurity->get_SecurityOption(&SecurityOption);
}
Related Topics
HOSTEX_SECURITY_OPTIONS Data Type
ProfileDisplay Interface
The ProfileDisplay interface lets you set configuration settings related to screen display.
Properties
The ProfileDisplay interface consists of the following properties:
BlinkToItalic
ColumnSeparators
DisplayInOIA
DisplayRowCol
DisplayUpperCase
ShowNulls
StatusLineMode
VTClearScreenOnSizeChange
VTHostWritableStatusLine
VTISOColors
VTMaxScrollBufferSize
VTResetISOColors
VTSaveAttribsInScrollback
VTSaveEraseScreens
VTScrollNoBlanks
Property: IHEProfileDisplay::BlinkToItalic
This property returns or sets a value indicating whether HostExplorer maps the Blink attribute to an italicized font. This property is
independent of the cursor mode. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileDisplay.BlinkToItalic
Syntax
HEProfileDisplay.BlinkToItalic = Boolean
HRESULT IHEProfileDisplay::put_BlinkToItalic([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer maps the Blink
attribute to an italicized font. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not map the Blink attribute to an italicized
font.
Property: IHEProfileDisplay::ColumnSeparators
This property returns or sets a value specifying the column-separator style for the session. By default, this property is set to Dots.
Basic Integer = HEProfileDisplay.ColumnSeparators
Syntax
HEProfileDisplay.ColumnSeparators = Integer
C++ HRESULT
Syntax IHEProfileDisplay::get_ColumnSeparators([out,
retval] short *pVal);
HRESULT IHEProfileDisplay::put_ColumnSeparators([in]
short newVal);
Parameters pVal—A returned value of:
• None—Indicates that HostExplorer does
not display separators between columns.
• Dots—Indicates that HostExplorer displays
column separators as dots on the terminal
window.
• Lines—Indicates that HostExplorer displays
column separators as lines on the terminal
window.
Property: IHEProfileDisplay::DisplayInOIA
This property returns or sets a value that specifies whether Host Explorer displays the host IP address or the host response time in the
OIA (Operator Information Area). By default, this property is set to HOSTEX_OIA_DISPLAY_IP_ADDRESS.
Basic HOSTEX_OIA_DISPLAY = HEProfileDisplay.DisplayInOIA
Syntax
HEProfileDisplay.DisplayInOIA = HOSTEX_OIA_DISPLAY
HRESULT IHEProfileDisplay::put_DisplayInOIA([in]
HOSTEX_OIA_DISPLAY newVal);
Parameters pVal—The returned value, specifying the OIA display
mode.
Related Topics
HOSTEX_OIA_DISPLAY Data Type
Property: IHEProfileDisplay::DisplayRowCol
This property returns or sets a value indicating whether HostExplorer displays the row and column indicator in the right-hand corner of
the OIA (Operator Information Area). By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileDisplay.DisplayRowCol
Syntax
HEProfileDisplay.DisplayRowCol = Boolean
HRESULT IHEProfileDisplay::put_DisplayRowCol([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays the row and
column indicator in the OIA. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not display the row and column indicator in
the OIA.
Property: IHEProfileDisplay::DisplayUpperCase
This property returns or sets a value indicating whether HostExplorer displays all output in upper case. By default, this property is set to
VARIANT_FALSE.
Basic Boolean = HEProfileDisplay.DisplayUpperCase
Syntax
HEProfileDisplay.DisplayUpperCase = Boolean
C++ HRESULT
Syntax IHEProfileDisplay::get_DisplayUpperCase([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileDisplay::put_DisplayUpperCase([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays all output in
upper case. A returned value of VARIANT_FALSE
indicates that HostExplorer does not change the
output.
Property: IHEProfileDisplay::ShowNulls
This property returns or sets a value indicating whether HostExplorer displays null characters in unprotected fields as centered dots. By
default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileDisplay.ShowNulls
Syntax
HEProfileDisplay.ShowNulls = Boolean
HRESULT IHEProfileDisplay::put_ShowNulls([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays null
characters as centered dots. A returned value of
VARIANT_FALSE indicates that HostExplorer
displays null characters as spaces.
Property: IHEProfileDisplay::StatusLineMode
This property returns or sets the type of status line mode (either terminal or window).
Basic HOSTEX_STATUS_LINE_MODE =
Syntax HEProfileDisplay.StatusLineMode
HEProfileDisplay.StatusLineMode =
HOSTEX_STATUS_LINE_MODE
C++ HRESULT IHEProfileDisplay::get_StatusLineMode([out,
Syntax retval] HOSTEX_STATUS_LINE_MODE *pVal);
HRESULT IHEProfileDisplay::put_StatusLineMode([in]
HOSTEX_STATUS_LINE_MODE newVal);
Parameters pVal—The returned value, which indicates the type
of status-line mode.
Related Topics
HOSTEX_STATUS_LINE_MODE Data Type
Property: IHEProfileDisplay::VTClearScreenOnSizeChange
This property returns or sets a value that specifies whether HostExplorer clears the screen display whenever you resize the screen.
Basic Boolean = HEProfileDisplay.VTClearScreenOnSizeChange
Syntax
HEProfileDisplay.VTClearScreenOnSizeChange = Boolean
C++ HRESULT
Syntax IHEProfileDisplay::get_VTClearScreenOnSizeChange([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileDisplay::put_VTClearScreenOnSizeChange([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer clears the screen
display whenever you resize the screen. If pVal
equals VARIANT_FALSE, HostExplorer does not clear
the screen.
HRESULT IHEProfileDisplay::put_VTHostWritableStatusLine([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays messages on
the status line. A returned value of
VARIANT_FALSE indicates that HostExplorer does
not display messages on the status line.
Property: IHEProfileDisplay::VTISOColors
This property returns or sets a value indicating whether HostExplorer enables support for ISO colors for ANSI (American National
Standards Institute) color-escape sequences on VT100, VT101, VT220, VT320, and VT420 models. By default, this property is set to
VARIANT_FALSE.
Basic Boolean = HEProfileDisplay.VTISOColors
Syntax
HEProfileDisplay.VTISOColors = Boolean
C++ HRESULT
Syntax IHEProfileDisplay::get_VTISOColors([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileDisplay::put_VTISOColors([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables support for
ISO colors. A returned value of VARIANT_FALSE
indicates that HostExplorer disables support for
ISO colors.
Property: IHEProfileDisplay::VTMaxScrollBufferSize
This property returns or sets the number of lines that HostExplorer maintains in the Scrollback buffer. This number ranges from 1 to
9,999. By default, this property is set to 100. To disable the Scrollback buffer, set the property to 0.
Basic Integer = HEProfileDisplay.VTMaxScrollBufferSize
Syntax
HEProfileDisplay.VTMaxScrollBufferSize = Integer
C++ HRESULT
Syntax IHEProfileDisplay::get_VTMaxScrollBufferSize([out,
retval] short *pVal);
HRESULT IHEProfileDisplay::put_VTMaxScrollBufferSize([in]
short newVal);
Parameters pVal—The returned value, indicating the number of
lines that HostExplorer maintains in the Scrollback
buffer.
Property: IHEProfileDisplay::VTResetISOColors
This property returns or sets a value that specifies whether HostExplorer obeys a Reset Set Graphics Rendition (SGR 0) command
when the host is sending color graphics commands. If you encounter screens that appeared properly with an older version of
HostExplorer but no longer do, set this property to VARIANT_FALSE.
Basic Boolean = HEProfileDisplay.VTResetISOColors
Syntax
HEProfileDisplay.VTResetISOColors = Boolean
C++ HRESULT
Syntax IHEProfileDisplay::get_VTResetISOColors([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileDisplay::put_VTResetISOColors([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer resets ISO colors
when prompted to do so by the host. If pVal equals
VARIANT_FALSE, HostExplorer does not reset ISO
colors.
C++ HRESULT
Syntax IHEProfileDisplay::get_VTSaveAttribsInScrollback([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileDisplay::put_VTSaveAttribsInScrollback([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer saves the Telnet screen
attributes in the Scrollback buffer. A returned value
of VARIANT_FALSE indicates that HostExplorer
does not save the Telnet screen attributes in the
Scrollback buffer.
Property: IHEProfileDisplay::VTSaveEraseScreens
This property returns or sets a value indicating whether HostExplorer saves the screen to the Scrollback buffer before performing the
Erase-Screen Host command. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileDisplay.VTSaveEraseScreens
Syntax
HEProfileDisplay.VTSaveEraseScreens = Boolean
C++ HRESULT
Syntax IHEProfileDisplay::get_VTSaveEraseScreens([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileDisplay::put_VTSaveEraseScreens([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer saves the screen to the
Scrollback buffer before performing the Erase-
Screen Host command. A returned value of
VARIANT_FALSE indicates that HostExplorer does
not save the screen to the Scrollback buffer before
performing the Erase-Screen Host command.
Property: IHEProfileDisplay::VTScrollNoBlanks
This property returns or sets a value indicating whether to prevent HostExplorer from adding blank lines to the Scrollback buffer. By
default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileDisplay.VTScrollNoBlanks
Syntax
HEProfileDisplay.VTScrollNoBlanks = Boolean
C++ HRESULT
Syntax IHEProfileDisplay::get_VTScrollNoBlanks([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileDisplay::put_VTScrollNoBlanks([in]
BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer cannot add blank lines
to the Scrollback buffer, so you can compress new
lines to create more space in the buffer. A
returned value of VARIANT_FALSE indicates that
HostExplorer can add blank lines to the Scrollback
buffer.
newVal—A value of VARIANT_TRUE indicates
that HostExplorer cannot add blank lines to the
Scrollback buffer, so you can compress new lines
to create more space in the buffer. A value of
VARIANT_FALSE indicates that HostExplorer can
add blank lines to the Scrollback buffer.
Basic Example Dim SessDisp As HEProfileDisplay
Set SessDisp = Profile.Display
Dim bVal As Boolean
bVal = SessDisp.VTScrollNoBlanks
If (bVal = False) Then
SessDisp.VTScrollNoBlanks = True
End If
C++ Example IHEProfileDisplay *pDisp;
pSess->get_Display(&pDisp);
VARIANT_BOOL bVal;
pDisp->get_VTScrollNoBlanks(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pDisp->put_VTScrollNoBlanks(bVal);
}
ProfileCursor Interface
The ProfileCursor interface lets you set configuration settings related to the cursor.
Properties
The ProfileCursor interface consists of the following properties:
CursorMode
CursorType
DisplayCrossHairCursor
MoveCursorOnMouseClick
Property: IHEProfileCursor::CursorMode
This property returns or sets a value specifying the cursor mode (solid or blink) to use for the current Profile.
Basic Integer = HEProfileCursor.CursorMode
Syntax
HEProfileCursor.CursorMode = Integer
C++ HRESULT
Syntax IHEProfileCursor::get_CursorMode([out,
retval] short *pVal);
HRESULT IHEProfileCursor::put_CursorMode([in]
short newVal);
Parameters pVal—The following returned values specify the
cursor mode:
• 0—Solid
• 1—Blink
newVal—The set value, specifying the cursor
mode.
Basic Example Dim SessCur As HEProfileCursor
Set SessCur = Profile.Cursor
Dim iVal As Integer
iVal = SessCur.CursorMode
If (iVal = 0) Then
SessCur.CursorMode = 1
End If
C++ Example IHEProfileCursor *pCursor;
pSess->get_Cursor(&pCursor);
short sVal;
pCursor->get_CursorMode(&sVal);
if (sVal == 0)
{
sVal = 1;
pCursor->put_CursorMode(sVal);
}
Property: IHEProfileCursor::CursorType
This property returns or sets a value specifying the cursor type (vertical bar, underscore, or block) to use for the current session.
Basic Integer = HEProfileCursor.CursorType
Syntax
HEProfileCursor.CursorType = Integer
HRESULT IHEProfileCursor::put_CursorType([in]
short newVal);
Parameters pVal—The following returned values specify the
cursor type:
• 0—Vertical bar
• 1—Underscore
• 2—Block
Property: IHEProfileCursor::DisplayCrossHairCursor
This property returns or sets a value that specifies whether the cursor appears as a cross-hair cursor. A cross-hair cursor consists of two
"cross-hair" lines that span across the screen and intersect at the cursor. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileCursor.DisplayCrossHairCursor
Syntax
HEProfileCursor.DisplayCrossHairCursor = Boolean
C++ HRESULT
Syntax IHEProfileCursor::get_DisplayCrossHairCursor([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileCursor::put_DisplayCrossHairCursor([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, the cursor appears as a cross-
hair. If pVal equals VARIANT_FALSE, the cursor
appears in its regular form.
Property: IHEProfileCursor::MoveCursorOnMouseClick
This property lets you force HostExplorer to automatically move the cursor when you click the mouse. By default, this property is set to
VARIANT_FALSE.
Basic Boolean = HEProfileCursor.MoveCursorOnMouseClick
Syntax
HEProfileCursor.MoveCursorOnMouseClick = Boolean
C++ HRESULT
Syntax IHEProfileCursor::get_MoveCursorOnMouseClick([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileCursor::put_MoveCursorOnMouseClick([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically moves
the cursor when you click the mouse. A returned
value of VARIANT_FALSE indicates that
HostExplorer does not automatically move the
cursor when you click the mouse.
ProfileFonts Interface
The ProfileFonts interface lets you set configuration settings related to fonts.
Methods
The ProfileFonts interface has the following methods:
SetFont
Properties
The ProfileFonts interface consists of the following properties:
CharacterSpacing
VariableWidthFont
Method: IHEProfileFonts::SetFont
This method lets you specify the font and font size you want for the session window. You specify the font size in terms of a width and
height.
Basic HEProfileFonts.SetFont(bstrFontName As
Syntax String, nXSize As Integer, nYSize As Integer)
Property: IHEProfileFonts::CharacterSpacing
This property returns or sets a value that lets you change the character spacing for variable-width fonts
Basic Integer = HEProfileFonts.CharacterSpacing
Syntax
HEProfileFonts.CharacterSpacing = Integer
C++ HRESULT
Syntax IHEProfileFonts::get_CharacterSpacing([out, retval
short *pVal);
HRESULT IHEProfileFonts::put_CharacterSpacing([in]
short newVal);
Parameters pVal—The returned value, which changes the
character spacing.
Property: IHEProfileFonts::VariableWidthFont
This property returns or sets a value indicating whether HostExplorer uses proportional fonts.
Basic Boolean = HEProfileFonts.VariableWidthFont
Syntax
HEProfileFonts.VariableWidthFont = Boolean
HRESULT IHEProfileFonts::put_VariableWidthFont([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer uses proportional
fonts. A returned value of VARIANT_FALSE
indicates that HostExplorer does not use
proportional fonts.
newVal—A value of VARIANT_TRUE indicates
that HostExplorer uses proportional fonts. A value
of VARIANT_FALSE indicates that HostExplorer
does not use proportional fonts.
Basic Example Dim Profile As HEProfile
Set Profile = Terminal.Session
Dim SessFonts As HEProfileFonts
Set SessFonts = Profile.Fonts
Dim bVal As Boolean
' Get value
bVal = SessFonts.VariableWidthFont
If (bVal = False) Then
' Set value
SessFonts.VariableWidthFont = True
End If
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileFonts *pFonts;
pSess->get_Fonts(&pFonts);
VARIANT_BOOL bVal;
bVal = pFonts->get_VariableWidthFont(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pFonts->put_VariableWidthFont(bVal);
}
ProfilePCPrint Interface
The ProfilePCPrint interface lets you set configuration settings related to the PCPRINT program.
Properties
The ProfilePCPrint interface consists of the following properties:
PrintMode7171
PrinterDeinit
PrinterInit
TprintMode
Property: IHEProfilePCPrint::PrintMode7171
This property returns or sets a value specifying what sequences the emulator searches for in PassThru mode.
Basic Integer = HEProfilePCPrint.PrintMode7171
Syntax
HEProfilePCPrint.PrintMode7171 = Integer
HRESULT IHEProfilePCPrint::put_PrintMode7171([in]
short newVal);
Parameters pVal—The following returned values specify the
sequences that the emulator searches for in pass-
through mode:
• 0—VT100
• 1—IBM 3164
Property: IHEProfilePCPrint::PrinterDeinit
This property returns or sets a string specifying the escape sequences that you can send to the printer at the end of a PCPRINT/TPRINT
job. The string can contain up to 255 characters and is printer-specific.
Basic String = HEProfilePCPrint.PrinterDeinit
Syntax
HEProfilePCPrint.PrinterDeinit = String
C++ HRESULT
Syntax IHEProfilePCPrint::get_PrinterDeinit([out,
retval] BSTR *pVal);
HRESULT IHEProfilePCPrint::put_PrinterDeinit([in]
BSTR newVal);
Parameters pVal—The returned de-initialization string that is sent
to the printer for pass-through printing.
Property: IHEProfilePCPrint::PrinterInit
This property returns or sets a string specifying the escape sequences that you can send to the printer at the beginning of a
PCPRINT/TPRINT job. The string can contain up to 255 characters and is printer-specific.
Basic String = HEProfilePCPrint.PrinterInit
Syntax
HEProfilePCPrint.PrinterInit = String
C++ HRESULT
Syntax IHEProfilePCPrint::get_PrinterInit([out,
retval] BSTR *pVal);
HRESULT IHEProfilePCPrint::put_PrinterInit([in]
BSTR newVal);
Parameters pVal—The returned initialization string that is sent to
the printer for pass-through printing.
Property: IHEProfilePCPrint::TprintMode
This property returns or sets a value specifying one of the following output destinations for TPRINT:
• • The default Windows printer.
• • The printer connected to an LPT1 parallel port.
• • The printer connected to an LPT2 parallel port.
• • The printer connected to an LPT3 parallel port.
• • The Windows clipboard.
Basic HOSTEX_TPRINT_OUTPUT =
Syntax HEProfilePCPrint.TprintMode
HEProfilePCPrint.TprintMode =
HOSTEX_TPRINT_OUTPUT
C++ HRESULT IHEProfilePCPrint::get_TprintMode([out,
Syntax retval] HOSTEX_TPRINT_OUTPUT *pVal);
HRESULT IHEProfilePCPrint::put_TprintMode([in]
HOSTEX_TPRINT_OUTPUT newVal);
Parameters pVal—The returned value, specifying the output
destination for TPRINT.
Related Topics
HOSTEX_TPRINT_OUTPUT Data Type
ProfilePrintScreen Interface
The ProfilePrintScreen interface lets you set configuration settings for printing a screen.
Properties
The ProfilePrintScreen interface consists of the following properties:
AddFormFeed
DisplayAbortDlg
DisplayPrintDlg
HostScreenPerPage
PrintBlackAndWhite
PrintBorder
PrinterDocname
PrinterFooter
PrinterHeader
PrintLocation
PrintOIA
PrintReversedColors
PrintScreenFontName
PrintScreenFontPointSize
PRTSCRUseSpecificPrinter
Property: IHEProfilePrintScreen::AddFormFeed
This property returns or sets a value indicating whether HostExplorer disables automatic form feed after HostExplorer sends a "screen
image" to the printer.
Basic Boolean = HEProfilePrintScreen.AddFormFeed
Syntax
HEProfilePrintScreen.AddFormFeed = Boolean
C++ HRESULT
Syntax IHEProfilePrintScreen::get_AddFormFeed([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintScreen::put_AddFormFeed([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer enables automatic
form feed. A returned value of VARIANT_FALSE
indicates that HostExplorer disables automatic
form feed.
Property: IHEProfilePrintScreen::DisplayAbortDlg
This property returns or sets a value indicating whether HostExplorer displays the Abort dialog box while printing. By default, this
property is set to VARIANT_FALSE.
Basic Boolean = HEProfilePrintScreen.DisplayAbortDlg
Syntax
HEProfilePrintScreen.DisplayAbortDlg = Boolean
C++ HRESULT
Syntax IHEProfilePrintScreen::get_DisplayAbortDlg([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintScreen::put_DisplayAbortDlg([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays the Abort
dialog box. A returned value of VARIANT_FALSE
indicates that HostExplorer does not display the
Abort dialog box.
Property: IHEProfilePrintScreen::DisplayPrintDlg
This property returns or sets a value indicating whether HostExplorer displays the Print Screen dialog box when it begins printing. By
default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfilePrintScreen.DisplayPrintDlg
Syntax
HEProfilePrintScreen.DisplayPrintDlg = Boolean
C++ HRESULT
Syntax IHEProfilePrintScreen::get_DisplayPrintDlg([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintScreen::put_DisplayPrintDlg([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays the
PrintScreen dialog box when it begins printing. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not display the PrintScreen
dialog box.
Property: IHEProfilePrintScreen::HostScreenPerPage
This property returns or sets the number of host screens that you want to print on one page.
Basic Integer = HEProfilePrintScreen.HostScreenPerPage
Syntax
HEProfilePrintScreen.HostScreenPerPage = Integer
HRESULT IHEProfilePrintScreen::put_HostScreenPerPage([in]
short newVal);
Parameters pVal—The returned value, specifying the current
number of host screens printed on a single page.
Property: IHEProfilePrintScreen::PrintBlackAndWhite
This property returns or sets a value indicating whether HostExplorer forces black-and-white printing on color printers by automatically
converting colors to gray-scale. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfilePrintScreen.PrintBlackAndWhite
Syntax
HEProfilePrintScreen.PrintBlackAndWhite = Boolean
C++ HRESULT
Syntax IHEProfilePrintScreen::get_PrintBlackAndWhite([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintScreen::put_PrintBlackAndWhite([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE forces
black-and-white printing. A returned value of
VARIANT_FALSE indicates color printing.
Property: IHEProfilePrintScreen::PrintBorder
This property returns or sets a value indicating whether HostExplorer prints a thick border around the printed screen image. You can set
this property only if you specify Centered On Page in the PrintLocation property.
Basic Boolean = HEProfilePrintScreen.PrintBorder
Syntax
HEProfilePrintScreen.PrintBorder = Boolean
HRESULT IHEProfilePrintScreen::put_PrintBorder([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer prints a thick border
around the printed screen image. A returned value
of VARIANT_FALSE indicates that HostExplorer
does not print a border.
Property: IHEProfilePrintScreen::PrinterDocname
This property returns or sets a string specifying the name of the document to be printed.
Basic String = HEProfilePrintScreen.PrinterDocname
Syntax
HEProfilePrintScreen.PrinterDocname = String
HRESULT IHEProfilePrintScreen::put_PrinterDocname([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the name
of the document to be printed.
Property: IHEProfilePrintScreen::PrinterFooter
This property returns or sets a string specifying the information to appear in the document footer.
Basic String = HEProfilePrintScreen.PrinterFooter
Syntax
HEProfilePrintScreen.PrinterFooter = String
C++ HRESULT
Syntax IHEProfilePrintScreen::get_PrinterFooter([out,
retval] BSTR *pVal);
HRESULT IHEProfilePrintScreen::put_PrinterFooter([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the information
to appear in the document footer.
Property: IHEProfilePrintScreen::PrinterHeader
This property returns or sets a value specifying the information to appear in the document header.
Basic String = HEProfilePrintScreen.PrinterHeader
Syntax
HEProfilePrintScreen.PrinterHeader = String
C++ HRESULT
Syntax IHEProfilePrintScreen::get_PrinterHeader([out,
retval] BSTR *pVal);
HRESULT IHEProfilePrintScreen::put_PrinterHeader([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the information
to appear in the document header.
This property returns or sets a value specifying how a screen appears on a printed page (either in the center or in the upper left-hand
corner).
Basic Integer = HEProfilePrintScreen.PrintLocation
Syntax
HEProfilePrintScreen.PrintLocation = Integer
HRESULT IHEProfilePrintScreen::put_PrintLocation([in]
short newVal);
Parameters pVal—The following returned values specify how
a screen appears on a printed page:
• 485—Centered
• 486—Upper left
Property: IHEProfilePrintScreen::PrintOIA
This property returns or sets a value indicating whether HostExplorer prints the OIA (Operator Information Area) on the printed screen
image.
Basic Boolean = HEProfilePrintScreen.PrintOIA
Syntax
HEProfilePrintScreen.PrintOIA = Boolean
Property: IHEProfilePrintScreen::PrintReversedColors
This property returns or sets a value indicating whether HostExplorer prints reverse-color modes. This property forces the print engine to
swap black and white colors while printing images. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfilePrintScreen.PrintReversedColors
Syntax
HEProfilePrintScreen.PrintReversedColors = Boolean
C++ HRESULT
Syntax IHEProfilePrintScreen::get_PrintReversedColors([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintScreen::put_PrintReversedColors([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer prints reverse-color
modes. A returned value of VARIANT_FALSE
indicates that HostExplorer does not print reverse-
color modes.
newVal—A value of VARIANT_TRUE indicates
that HostExplorer prints reverse-color modes. A
value of VARIANT_FALSE indicates that
HostExplorer does not print reverse-color modes.
Basic Example Dim PrintScrn As HEProfilePrintScreen
Set PrintScrn=Profile.PrintScreen
Dim bVal As Boolean
bVal = PrintScrn.PrintReversedColors
If (bVal = False) Then
PrintScrn.PrintReversedColors = True
End If
C++ IHEProfilePrintScreen *pPrtScrn;
Example pSess->get_PrintScreen(&pPrtScrn);
VARIANT_BOOL bVal;
pPrtScrn->get_PrintReversedColors(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pPrtScrn->put_PrintReversedColors(bVal);
}
Property: IHEProfilePrintScreen::PrintScreenFontName
This property lets you change the default printer font used to print screen images (or the keyboard template) from Times New Roman to
any TrueType font of your choice.
Basic String = HEProfilePrintScreen.PrintScreenFontName
Syntax
HEProfilePrintScreen.PrintScreenFontName = String
C++ HRESULT
Syntax IHEProfilePrintScreen::get_PrintScreenFontName([out,
retval] BSTR *pVal);
HRESULT IHEProfilePrintScreen::put_PrintScreenFontName([in]
BSTR newVal);
Parameters pVal—The returned string, which indicates the
TrueType font.
Property: IHEProfilePrintScreen::PrintScreenFontPointSize
This property returns or sets a value indicating the font size for printing.
Basic Integer = HEProfilePrintScreen.PrintScreenFontPointSize
Syntax
HEProfilePrintScreen.PrintScreenFontPointSize = Integer
C++ HRESULT
Syntax IHEProfilePrintScreen::get_PrintScreenFontPointSize([out,
retval] short *pVal);
HRESULT
IHEProfilePrintScreen::put_PrintScreenFontPointSize([in] short
newVal);
Parameters pVal—The returned value, which indicates the font
size for printing.
This property returns or sets a value indicating whether HostExplorer prints using the printer displayed in the Selected Printer Info box or
the default printer. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfilePrintScreen.PRTSCRUseSpecificPrinter
Syntax
HEProfilePrintScreen.PRTSCRUseSpecificPrinter = Boolean
C++ HRESULT
Syntax IHEProfilePrintScreen::get_PRTSCRUseSpecificPrinter([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintScreen::put_PRTSCRUseSpecificPrinter([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE indicates
that HostExplorer prints using the specified printer. A
returned value of VARIANT_FALSE indicates that
HostExplorer prints using the default printer.
ProfilePrintSession Interface
The ProfilePrintSession interface lets you set configuration settings related to general output.
Properties
The ProfilePrintSession interface consists of the following properties:
HostName
LimitToSingleInstance
LUName
LUType
ProfileName
StartPrinter
StopPrinter
Property: IHEProfilePrintSession::HostName
This property returns or sets a string specifying the host name or IP address that PrintSession uses to establish a connection.
Basic String = HEProfilePrintSession.HostName
Syntax
HEProfilePrintSession.HostName = String
HRESULT IHEProfilePrintSession::put_HostName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the host
name or IP address.
Property: IHEProfilePrintSession::LimitToSingleInstance
This property returns or sets a value that specifies whether the printer session associated with a display session starts only once if you
have launched more than one instance of the display session.
Basic Boolean = HEProfilePrintSession.LimitToSingleInstance
Syntax
HEProfilePrintSession.LimitToSingleInstance = Boolean
C++ HRESULT
Syntax IHEProfilePrintSession::get_LimitToSingleInstance([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintSession::get_LimitToSingleInstance([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, the printer session starts only
once. If pVal equals VARIANT_FALSE, a printer
session starts for each instance of the display
session.
Property: IHEProfilePrintSession::LUName
This property returns or sets a string specifying the LU (Logical Units) name for the current print Profile.
Basic String = HEProfilePrintSession.LUName
Syntax
HEProfilePrintSession.LUName = String
C++ HRESULT
Syntax IHEProfilePrintSession::get_LUName([out,
retval] BSTR *pVal);
HRESULT IHEProfilePrintSession::put_LUName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the LU
name.
newVal—The set string, specifying the LU
name.
Basic Example Dim PrintSess As
HEProfilePrintSession
Set PrintSess = Profile.PrintSession
Dim str As String
' Get value
str = PrintSess.LUName
If (Len(str) = 0) Then
' Set value
PrintSess.LUName = “LUNAme1”
End If
C++ IHEProfilePrintSession *pPrintSess;
Example pSess->get_PrintSession(&pPrintSess);
BSTR bstr;
pPrintSess->get_LUName(&bstr);
if (strlen(OLE2A(bstr)) == 0)
{
if (bstr!=NULL)
SysFreeString(bstr);
bstr = SysAllocString(OLESTR("LUNAme1"));
pPrintSess->put_LUName(bstr);
SysFreeString(bstr);
}
Property: IHEProfilePrintSession::LUType
This property returns or sets a value specifying how the LU (Logical Units) type is determined.
Basic Integer = HEProfilePrintSession.LUType
Syntax
HEProfilePrintSession.LUType = Integer
HRESULT IHEProfilePrintSession::put_LUType([in]
short newVal);
Parameters pVal—The following returned values indicate how
the LU type is determined:
• 460—ConnectLU
• 461—LUName
• 462—AssociateLU
• 463—ProfileLU
Property: IHEProfilePrintSession::ProfileName
This property returns or sets a string specifying the LU (Logical Units) name for the Base PrintSession profile.
Basic String = HEProfilePrintSession.ProfileName
Syntax
HEProfilePrintSession.ProfileName = String
C++ HRESULT
Syntax IHEProfilePrintSession::get_ProfileName([out,
retval] BSTR *pVal);
HRESULT IHEProfilePrintSession::put_ProfileName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the LU
name for the Base PrintSession profile.
Property: IHEProfilePrintSession::StartPrinter
This property returns or sets a value indicating whether HostExplorer starts the printer automatically.
Basic Boolean = HEProfilePrintSession.StartPrinter
Syntax
HEProfilePrintSession.StartPrinter = Boolean
C++ HRESULT
Syntax IHEProfilePrintSession::get_StartPrinter([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintSession::put_StartPrinter([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer starts the printer
automatically. A returned value of
VARIANT_FALSE indicates that HostExplorer does
not start the printer automatically.
Property: IHEProfilePrintSession::StopPrinter
This property returns or sets a value indicating whether HostExplorer stops the printer.
Basic Boolean = HEProfilePrintSession.StopPrinter
Syntax
HEProfilePrintSession.StopPrinter = Boolean
C++ HRESULT
Syntax IHEProfilePrintSession::get_StopPrinter([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfilePrintSession::put_StopPrinter([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer stops the printer. A
returned value of VARIANT_FALSE indicates that
HostExplorer does not stop the printer.
ProfileCapture Interface
The ProfileCapture interface lets you set configuration settings related to the saving of files.
Properties
The ProfileCapture interface consists of the following properties:
SaveAppend
SaveConfirm
SaveFileName
SaveMode
VTCaptureMode
Property: IHEProfileCapture::SaveAppend
This property returns or sets a value indicating whether HostExplorer adds a new file to the end of an existing file. By default, this
property is set to VARIANT_TRUE.
Basic Boolean = HEProfileCapture.SaveAppend
Syntax
HEProfileCapture.SaveAppend = Boolean
C++ HRESULT
Syntax IHEProfileCapture::get_SaveAppend([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileCapture::put_SaveAppend([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer adds a new file to the
end of an existing file. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not add a new file to the end of an existing
file.
This property returns or sets a value indicating whether to force the Save Screen command to prompt for a file name.
Basic Boolean = HEProfileCapture.SaveConfirm
Syntax
HEProfileCapture.SaveConfirm = Boolean
HRESULT IHEProfileCapture::put_SaveConfirm([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
forces the Save Screen command to prompt for a
file name. A returned value of VARIANT_FALSE
does not force the Save Screen command to
prompt for a file name.
Property: IHEProfileCapture::SaveFileName
This property returns or sets a string specifying the default path and file name that HostExplorer uses for saved and captured files.
Unless otherwise specified, HostExplorer uses the same file name for all captured and saved screens.
Basic String = HEProfileCapture.SaveFileName
Syntax
HEProfileCapture.SaveFileName = String
HRESULT IHEProfileCapture::put_SaveFileName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the
default path and file name.
Property: IHEProfileCapture::SaveMode
This property returns or sets a value specifying the format in which HostExplorer saves the .SAV file.
Basic Integer = HEProfileCapture.SaveMode
Syntax
HEProfileCapture.SaveMode = Integer
HRESULT IHEProfileCapture::put_SaveMode([in]
short newVal);
Parameters pVal—The following returned values specify the
format for saved files:
• 447—ASCII
• 448—ANSI
Property: IHEProfileCapture::VTCaptureMode
This property returns or sets a value specifying how to capture selected text.
Basic Integer = HEProfileCapture.VTCaptureMode
Syntax
HEProfileCapture.VTCaptureMode = Integer
HRESULT IHEProfileCapture::put_VTCaptureMode([in]
short newVal);
Parameters pVal—The following returned values specify how
to capture selected text:
• 546—Raw
• 547—Text
ProfileHostPrinting Interface
The ProfileHostPrinting interface lets you set configuration settings related to host printing.
Properties
The ProfileHostPrinting interface consists of the following properties:
Printer
VTAutoFormFeed
VTPrintByPassWindows
VTPrintDefaultFont
VTPrintDisableTranslation
VTPrinterDeinit
VTPrinterEnableTimeout
VTPrinterFontName
VTPrinterInit
VTPrinterTimeout
VTPrinterTimeoutValue
VTPrintFile
VTPrintFileMode
VTPrintLFtoCRLF
VTPrintTarget
VTUseSpecificPrinter
Property: IHEProfileHostPrinting::Printer
This property returns or sets a pointer to an HEPrinter structure that contains device modes and names.
Basic LPARAM = HEProfileHostPrinting.Printer
Syntax
HEProfileHostPrinting.Printer = LPARAM
HRESULT IHEProfileHostPrinting::put_Printer([in]
LPARAM newVal);
Parameters pVal—The returned pointer to the HEPrinter
structure.
Property: IHEProfileHostPrinting::VTAutoFormFeed
This property returns or sets a value that specifies whether HostExplorer automatically adds a formfeed to the end of the print job.
Basic Boolean = HEProfileHostPrinting.VTAutoFormFeed
Syntax
HEProfileHostPrinting.VTAutoFormFeed = Boolean
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTAutoFormFeed([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileHostPrinting::put_VTAutoFormFeed([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer adds a formfeed
to the end of the print job. If pVal equals
VARIANT_FALSE, HostExplorer does not add a
formfeed.
Property: IHEProfileHostPrinting::VTPrintByPassWindows
This property returns or sets a value that specifies whether HostExplorer bypasses the Windows print driver.
Basic Boolean = HEProfileHostPrinting.VTPrintByPassWindows
Syntax
HEProfileHostPrinting.VTPrintByPassWindows = Boolean
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrintByPassWindows([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrintByPassWindows([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer bypasses the
Windows print driver. If pVal equals
VARIANT_FALSE, HostExplorer does not bypass
the driver.
Property: IHEProfileHostPrinting::VTPrintDefaultFont
This property returns or sets a value that specifies whether HostExplorer uses the default font when printing.
Basic Boolean = HEProfileHostPrinting.VTPrintDefaultFont
Syntax
HEProfileHostPrinting.VTPrintDefaultFont = Boolean
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrintDefaultFont([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrintDefaultFont([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer uses the default
font when printing.
Property: IHEProfileHostPrinting::VTPrintDisableTranslation
This property returns or sets a value that specifies whether HostExplorer disables translation of host data from the host code page to the
Windows code page.
Basic Boolean = HEProfileHostPrinting.VTPrintDisableTranslation
Syntax
HEProfileHostPrinting.VTPrintDisableTranslation = Boolean
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrintDisableTranslation([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileHostPrinting::put_VTPrintDisableTranslation([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer disables translation of
host data from the host code page to the Windows
code page. If pVal equals VARIANT_FALSE,
HostExplorer does not disable translation of host data.
Property: IHEProfileHostPrinting::VTPrinterDeinit
This property returns or sets a string specifying the escape sequences that you can send to the printer at the end of a print job. The
string can contain up to 255 characters and is printer-specific. You can enter Escape and binary codes using the backslash character (\).
HostExplorer treats Inline spaces as part of the sequence.
Basic String = HEProfileHostPrinting.VTPrinterDeinit
Syntax
HEProfileHostPrinting.VTPrinterDeinit = String
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrinterDeinit([out,
retval] BSTR *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrinterDeinit([in]
BSTR newVal);
Parameters pVal—The returned de-initialization string that
HostExplorer sends to the printer for pass-through
printing.
Related Topics
Property: IHEProfileHostPrinting::VTPrinterInit
Property: IHEProfileHostPrinting::VTPrinterEnableTimeout
This property returns or sets a value that specifies whether HostExplorer delays the printer output.
Basic Boolean = HEProfileHostPrinting.VTPrinterEnableTimeout
Syntax
HEProfileHostPrinting.VTPrinterEnableTimeout = Boolean
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrinterEnableTimeout([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileHostPrinting::put_VTPrinterEnableTimeout([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer delays the printer
output. If pVal equals VARIANT_FALSE,
HostExplorer does not delay printer output.
Related Topics
Property: IHEProfileHostPrinting::VTPrinterTimeout
Property: IHEProfileHostPrinting::VTPrinterFontName
This property returns or sets a string that specifies the default printer font. The string can specify the name of any TrueType font. The
default setting is "Times New Roman".
Basic String = HEProfileHostPrinting.VTPrinterFontName
Syntax
HEProfileHostPrinting.VTPrinterFontName = String
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrinterFontName([out,
retval] BSTR *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrinterFontName([in]
BSTR newVal);
Parameters pVal—The returned string that specifies the current
default printer font.
Property: IHEProfileHostPrinting::VTPrinterInit
This property returns or sets a string specifying the escape sequences that you can send to the printer at the beginning of a print job.
The string can contain up to 255 characters and is printer-specific. You can enter Escape and binary codes using the backslash
character (\). HostExplorer treats Inline spaces as part of the sequence.
Basic String = HEProfileHostPrinting.VTPrinterInit
Syntax
HEProfileHostPrinting.VTPrinterInit = String
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrinterInit([out,
retval] BSTR *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrinterInit([in]
BSTR newVal);
Parameters pVal—The returned initialization string that is sent to
the printer for pass-through printing.
Related Topics
Property: IHEProfileHostPrinting::VTPrinterDeinit
Property: IHEProfileHostPrinting::VTPrinterTimeout
This property returns or sets a value specifying the delay (in seconds) before the printer prints a page.
Basic Integer = HEProfileHostPrinting.VTPrinterTimeout
Syntax
HEProfileHostPrinting.VTPrinterTimeout = Integer
HRESULT IHEProfileHostPrinting::put_VTPrinterTimeout([in]
short newVal);
Parameters pVal—The returned value, specifying the printer
delay.
Related Topics
Property: IHEProfileHostPrinting::VTPrinterEnableTimeout
Property: IHEProfileHostPrinting::VTPrinterTimeoutValue
This property returns or sets the timeout value for the DO_PRNCTRL command.
Basic Integer = HEProfileHostPrinting.VTPrinterTimeoutValue
Syntax
HEProfileHostPrinting.VTPrinterTimeoutValue = Integer
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrinterTimeoutValue([out,
retval] short *pVal);
HRESULT
IHEProfileHostPrinting::put_VTPrinterTimeoutValue([in] short
newVal);
Parameters pVal—The returned value, specifying the timeout
value for the command.
Property: IHEProfileHostPrinting::VTPrintFile
This property returns or sets a string that specifies the path and name of the target file that you want HostExplorer to use when it prints
to a file.
Basic String = HEProfileHostPrinting.VTPrintFile
Syntax
HEProfileHostPrinting.VTPrintFile = String
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTPrintFile([out,
retval] BSTR *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrintFile([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the path and
name of the target file for host printing.
Property: IHEProfileHostPrinting::VTPrintFileMode
This property returns or sets a value that specifies which of the following methods HostExplorer uses to print to a file:
• • Overwrite—HostExplorer overwrites the contents of the target file with the new material.
• • Append—HostExplorer appends the new material to the existing contents of the target file.
• • Auto number—HostExplorer prefixes a line number to each line it writes to the target file.
By default, the value for this property is HOSTEX_PRINTFILE_MODE_OVERWRITE.
Basic HOSTEX_PRINTFILE_MODE =
Syntax HEProfileHostPrinting.VTPrintFileMode
HEProfileHostPrinting.VTPrintFileMode =
HOSTEX_PRINTFILE_MODE
C++ HRESULT IHEProfileHostPrinting::get_VTPrintFileMode([out,
Syntax retval] HOSTEX_PRINTFILE_MODE *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrintFileMode([in]
HOSTEX_PRINTFILE_MODE newVal);
Parameters pVal—The return value, specifying the method that
HostExplorer uses to print to a file.
Related Topics
HOSTEX_PRINTFILE_MODE Data Type
Property: IHEProfileHostPrinting::VTPrintLFtoCRLF
This property returns or sets a value that specifies whether HostExplorer expands linefeed (LF) characters to carriage return + linefeed
(CR + LF) characters when printing.
Basic Boolean = HEProfileHostPrinting.VTPrintLFtoCRLF
Syntax
HEProfileHostPrinting.VTPrintLFtoCRLF = Boolean
HRESULT IHEProfileHostPrinting::put_VTPrintLFtoCRLF([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer prints each
linefeed character as a carriage return followed
by a linefeed character. If pVal equals
VARIANT_FALSE, HostExplorer does not expand
linefeed characters.
Property: IHEProfileHostPrinting::VTPrintTarget
This property specifies which of the following targets HostExplorer uses for host printing:
• • Default printer
• • Specified printer
• • Specified file
The default value for this property is HOSTEX_PRINT_TARGET_DEFAULT_PRT.
Basic HOSTEX_PRINT_TARGET =
Syntax HEProfileHostPrinting.VTPrintTarget
HEProfileHostPrinting.VTPrintTarget =
HOSTEX_PRINT_TARGET
C++ HRESULT IHEProfileHostPrinting::get_VTPrintTarget([out,
Syntax retval] HOSTEX_PRINT_TARGET *pVal);
HRESULT IHEProfileHostPrinting::put_VTPrintTarget([in]
HOSTEX_PRINT_TARGET newVal);
Parameters pVal—The return value, specifying the target for host
printing.
Related Topics
HOSTEX_PRINT_TARGET Data Type
Property: IHEProfileHostPrinting::VTUseSpecificPrinter
Property: IHEProfileHostPrinting::VTPrintFile
Property: IHEProfileHostPrinting::VTUseSpecificPrinter
This property determines whether HostExplorer prints using the printer displayed in the Selected Printer Info box. When this option is
disabled, HostExplorer uses the default printer. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileHostPrinting.VTUseSpecificPrinter
Syntax
HEProfileHostPrinting.VTUseSpecificPrinter = Boolean
C++ HRESULT
Syntax IHEProfileHostPrinting::get_VTUseSpecificPrinter([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileHostPrinting::put_VTUseSpecificPrinter([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer prints using the
specified printer. A returned value of
VARIANT_FALSE indicates that HostExplorer
prints using the default printer.
ProfileHotspots Interface
The ProfileHotspots interface lets you configure settings related to hotspots on the host screen.
Properties
The ProfileHotspots interface consists of the following properties:
DisplayStyle
EnableHotspots
MouseActivation
Schemes
Property: IHEProfileHotspots::DisplayStyle
This property returns or sets a value that specifies how HostExplorer displays hotspots. The hotspot display style can be one of the
following:
• • Invisible—The hotspot region or text appears in its regular display style until you move the cursor over it, at which point the
cursor changes into a hand.
• • Raised Button—The hotspot region or text always appears highlighted.
By default, this property is set to HOSTEX_HOTSPOT_DISPLAY_RAISED_BUTTON.
Basic HOSTEX_HOTSPOT_DISPLAY = HEProfileHotspots.DisplayStyle
Syntax
HEProfileHotspots.DisplayStyle = HOSTEX_HOTSPOT_DISPLAY
HRESULT IHEProfileHotspots::put_DisplayStyle([in]
HOSTEX_HOTSPOT_DISPLAY newVal);
Parameters pVal—The return value, specifying the hotspot
display style (either invisible or raised button).
Related Topics
HOSTEX_HOTSPOT_DISPLAY Data Type
Property: IHEProfileHotspots::EnableHotspots
This property returns or sets a value that specifies whether HostExplorer enables hotspots on the host screen.
Basic Boolean = HEProfileHotspots.EnableHotspots
Syntax
HEProfileHotspots.EnableHotspots = Boolean
C++ HRESULT
Syntax IHEProfileHotspots::get_EnableHotspots([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileHotspots::put_EnableHotspots([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer enables hotspots
on the host screen. If pVal equals
VARIANT_FALSE, HostExplorer disables
hotspots.
Property: IHEProfileHotspots::MouseActivation
This property returns or sets a value that specifies how hotspots are activated using a mouse. By default, this property is set to
HOSTEX_HOTSPOT_MOUSE_ACTIVATION_SINGLE_CLICK.
Basic HOSTEX_HOTSPOT_MOUSE_ACTIVATION =
Syntax HEProfileHotspots.MouseActivation
HEProfileHotspots.MouseActivation =
HOSTEX_HOTSPOT_MOUSE_ACTIVATION
C++ HRESULT IHEProfileHotspots::get_MouseActivation([out, retval]
Syntax HOSTEX_HOTSPOT_MOUSE_ACTIVATION *pVal);
HRESULT IHEProfileHotspots::put_MouseActivation([in]
HOSTEX_HOTSPOT_MOUSE_ACTIVATION newVal);
Parameters pVal—The return value, specifying the hotspot
mouse-activation mode (either single-click or double-
click).
Related Topics
HOSTEX_HOTSPOT_MOUSE_ACTIVATION Data Type
Property: IHEProfileHotspots::Schemes
This property returns or sets a string that specifies the name of the hotspot scheme for the current session. A scheme is a collection of
settings.
Basic String = HEProfileHotspots.Schemes
Syntax
HEProfileHotspots.Schemes = String
HRESULT IHEProfileHotspots::put_Schemes([in]
BSTR newVal);
Parameters pVal—The returned value, specifying the
hotspot scheme currently in effect.
ProfileEvents Interface
The ProfileEvents interface lets you configure settings related to programmed events.
Methods
The ProfileEvents interface has the following methods:
RemoveEvent
Properties
The ProfileEvents interface consists of the following properties:
EnableEvents
Schemes
Method: IHEProfileEvents::RemoveEvent
This method lets you delete a particular event from the current event scheme. You specify the event as a number that corresponds to its
position in the event list.
Basic HEProfileEvents.RemoveEvent(nIndex As
Syntax Integer)
Property: IHEProfileEvents::EnableEvents
This property returns or sets a value that specifies whether HostExplorer enables the events that you have programmed.
Basic Boolean = HEProfileEvents.EnableEvents
Syntax
HEProfileEvents.EnableEvents = Boolean
HRESULT IHEProfileEvents::put_EnableEvents([in]
VARIANT_BOOL newVal);
Parameters pVal—The return value. If pVal equals
VARIANT_TRUE, HostExplorer enables your
programmed events. If pVal equals
VARIANT_FALSE, HostExplorer disables those
events.
Property: IHEProfileEvents::Schemes
This property returns or sets a string that specifies the name of the event scheme for the current session. A scheme is a collection of
settings.
Basic String = HEProfileEvents.Schemes
Syntax
HEProfileEvents.Schemes = String
C++ HRESULT
Syntax IHEProfileEvents::get_Schemes([out,
retval] BSTR *pVal);
HRESULT IHEProfileEvents::put_Schemes([in]
BSTR newVal);
Parameters pVal—The returned value, specifying the
event scheme currently in effect.
ProfileConnection Interface
The ProfileConnection interface lets you configure settings related to the connection to the host.
Properties
The ProfileConnection interface consists of the following properties:
AreaCode ModemID
AutoEndMacroName NumberOfRetries
AutoMacroName Password
AutoRunMacroDelayTime Port
AutoSignOn PortList
BackspaceKeyInterpretation RetryDelayTimeBetweenHosts
ConnectBy ShowDialupDlg
Country SYSREQasIACIP
CountryCode TelnetEcho
CountryID TelnetName
DeviceName Timeout
DirectToModem UponDisconnect
EnableInfiniteRetries UseDialProp
EnterKeyInterpretation UserName
HostName VTDoHostWindowSize
KeyboardBufferMode VTInitiateTelnetNegotiation
LUName VTLineMode
Modem
Property: IHEProfileConnection::AreaCode
This property returns or sets a value specifying the area code when you use a modem connection. By default, this property is set to 0.
Basic Long = HEProfileConnection.AreaCode
Syntax
HEProfileConnection.AreaCode = Long
C++ HRESULT
Syntax IHEProfileConnection::get_AreaCode([out,
retval] long *pVal);
HRESULT IHEProfileConnection::put_AreaCode([in]
long newVal);
Parameters pVal—The returned value, which indicates the
area code.
Property: IHEProfileConnection::AutoEndMacroName
This property returns or sets a string that specifies the name of the macro that you want to terminate each time you start a new session.
Basic String = HEProfileConnection.AutoEndMacroName
Syntax
HEProfileConnection.AutoEndMacroName = String
C++ HRESULT
Syntax IHEProfileConnection::get_AutoEndMacroName([out,
retval] BSTR *pVal);
HRESULT IHEProfileConnection::put_AutoEndMacroName([in]
BSTR newVal);
Parameters pVal—The returned string, which indicates the full
pathname of the macro.
Related Topics
Property: IHEProfileConnection::AutoMacroName
Property: IHEProfileConnection::AutoMacroName
This property returns or sets a string specifying the full path name of the start-up macro. HostExplorer saves the full path name of the
macro and launches it automatically each time you launch a new session.
Basic String = HEProfileConnection.AutoMacroName
Syntax
HEProfileConnection.AutoMacroName = String
C++ HRESULT
Syntax IHEProfileConnection::get_AutoMacroName([out,
retval] BSTR *pVal);
HRESULT IHEProfileConnection::put_AutoMacroName([in]
BSTR newVal);
Parameters pVal—The returned string, which indicates the
full pathname of the macro.
Related Topics
Property: IHEProfileConnection::AutoEndMacroName
Property: IHEProfileConnection::AutoRunMacroDelayTime
This property returns or sets the time (in seconds) that HostExplorer waits before it launches the start-up macro whenever you start a
new session. By default, the delay is set to zero.
Basic Long = HEProfileConnection.AutoRunMacroDelayTime
Syntax
HEProfileConnection.AutoRunMacroDelayTime = Long
C++ HRESULT
Syntax IHEProfileConnection::get_AutoRunMacroDelayTime([out,
retval] long *pVal);
HRESULT
IHEProfileConnection::put_AutoRunMacroDelayTime([in] long
newVal);
Parameters pVal—The returned value, specifying the time that
HostExplorer waits before it launches the start-up
macro.
Property: IHEProfileConnection::AutoSignOn
This property returns or sets a value that specifies whether HostExplorer automatically logs onto the host (using the supplied AS/400
user ID and password) and bypasses the sign-on screen when a connection to the host is established. You must supply an AS/400 user
ID and password prior to enabling this property.
Basic Boolean = HEProfileConnection.AutoSignOn
Syntax
HEProfileConnection.AutoSignOn = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_AutoSignOn([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileConnection::put_AutoSignOn([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer automatically
logs onto the host when a connection to the host
is established. If pVal equals VARIANT_FALSE,
HostExplorer does not automatically log onto the
host.
Property: IHEProfileConnection::BackspaceKeyInterpretation
This property returns or sets a value that specifies the command that HostExplorer sends to the host when you press the Backspace
key. By default, this property is set to HOSTEX_BACKSPACE_KEY_AS_DELETE.
Basic HOSTEX_BACKSPACE_KEY_INTERPRETATION =
Syntax HEProfileConnection.BackspaceKeyInterpretation
HEProfileConnection.BackspaceKeyInterpretation =
HOSTEX_BACKSPACE_KEY_INTERPRETATION
C++ HRESULT IHEProfileConnection::get_BackspaceKeyInterpretation([out, retval]
Syntax HOSTEX_BACKSPACE_KEY_INTERPRETATION *pVal);
HRESULT IHEProfileConnection::put_BackspaceKeyInterpretation([in]
HOSTEX_BACKSPACE_KEY_INTERPRETATION newVal);
Parameters pVal—The returned value, specifying the command
that HostExplorer sends to the host when you press
the Backspace key.
Related Topics
HOSTEX_BACKSPACE_KEY_INTERPRETATION Data Type
Property: IHEProfileConnection::ConnectBy
This property returns or sets a value indicating the method of connection (connection protocol) between the client machine and the host.
By default, the property is set to HOSTEX_CONNECT_BY_TELNET.
Basic HOSTEX_CONNECT_BY = HEProfileConnection.ConnectBy
Syntax
HEProfileConnection.ConnectBy = HOSTEX_CONNECT_BY
HRESULT IHEProfileConnection::put_ConnectBy([in]
HOSTEX_CONNECT_BY newVal);
Parameters pVal—The returned value, indicating the connection.
Related Topics
HOSTEX_CONNECT_BY data type
Property: IHEProfileConnection::Country
This property returns or sets a string specifying the country you are calling when you use a modem connection.
Basic String = HEProfileConnection.Country
Syntax
HEProfileConnection.Country = String
C++ HRESULT
Syntax IHEProfileConnection::get_Country([out,
retval] BSTR *pVal);
HRESULT IHEProfileConnection::put_Country([in]
BSTR newVal);
Parameters pVal—The returned string, which indicates the
country you are calling.
Related Topics
Property: IHEProfileConnection::CountryCode
Property: IHEProfileConnection::CountryID
Property: IHEProfileConnection::CountryCode
This property returns or sets a value specifying the country code when you use a modem connection.
Basic Long = HEProfileConnection.CountryCode
Syntax
HEProfileConnection.CountryCode = Long
HRESULT IHEProfileConnection::put_CountryCode([in]
long newVal);
Parameters pVal—The returned value, specifying the
country code.
Property: IHEProfileConnection::CountryID
This property returns or sets a value specifying the country ID when you use a modem connection.
Basic Long = HEProfileConnection.CountryID
Syntax
HEProfileConnection.CountryID = Long
HRESULT IHEProfileConnection::put_CountryID([in]
long newVal);
Parameters pVal—The returned value specifying the
country ID.
Property: IHEProfileConnection::DeviceName
This property returns or sets a value indicating whether you want to connect to a default or specific device name.
Basic String = HEProfileConnection.DeviceName
Syntax
HEProfileConnection.DeviceName = String
HRESULT IHEProfileConnection::put_DeviceName([in]
BSTR newVal);
Parameters pVal—The returned value, which indicates
whether to connect to a default or specific device
name.
Property: IHEProfileConnection::DirectToModem
This property returns or sets a value indicating whether HostExplorer sets the DirectToModem flag. When set, this flag causes the
emulator to connect to the modem immediately and to bypass the dialing stage. This lets you use a modem link as if it were a COM port.
Basic Boolean = HEProfileConnection.DirectToModem
Syntax
HEProfileConnection.DirectToModem = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_DirectToModem([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileConnection::put_DirectToModem([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the DirectToModem flag is set. A
returned value of VARIANT_FALSE indicates that
the DirectToModem flag is not set.
Property: IHEProfileConnection::EnableInfiniteRetries
This property returns or sets a value that specifies whether HostExplorer continually attempts to connect to all the hosts listed in the
Hosts pane until one becomes available.
Basic Boolean = HEProfileConnection.EnableInfiniteRetries
Syntax
HEProfileConnection.EnableInfiniteRetries = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_EnableInfiniteRetries([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileConnection::put_EnableInfiniteRetries([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer attempts to connect
to all hosts until one becomes available. If pVal
equals VARIANT_FALSE, HostExplorer does not
attempt to connect continually.
Property: IHEProfileConnection::EnterKeyInterpretation
This property returns or sets a value that specifies the key sequence that HostExplorer sends to the host when you press the Enter key.
By default, this property is set to HOSTEX_ENTER_KEY_AS_RETURN_AND_LINEFEED.
Basic HOSTEX_ENTER_KEY_INTERPRETATION =
Syntax HEProfileConnection.EnterKeyInterpretation
HEProfileConnection.EnterKeyInterpretation =
HOSTEX_ENTER_KEY_INTERPRETATION
C++ HRESULT IHEProfileConnection::get_EnterKeyInterpretation([out, retval]
Syntax HOSTEX_ENTER_KEY_INTERPRETATION *pVal);
HRESULT IHEProfileConnection::put_EnterKeyInterpretation([in]
HOSTEX_ENTER_KEY_INTERPRETATION newVal);
Parameters pVal—The returned value, specifying the key
sequence that HostExplorer sends to the host when
you press the Enter key.
Related Topics
HOSTEX_ENTER_KEY_INTERPRETATION Data Type
Property: IHEProfileConnection::HostName
This property returns or sets a string that specifies the name of the host to which you are trying to connect.
Basic String = HEProfileConnection.HostName
Syntax
HEProfileConnection.HostName = String
C++ HRESULT
Syntax IHEProfileConnection::get_HostName([out,
retval] BSTR *pVal);
HRESULT IHEProfileConnection::put_HostName([in]
BSTR newVal);
Parameters pVal—The returned string, indicating the host
name.
Property: IHEProfileConnection::KeyboardBufferMode
This property returns or sets a value that specifies how HostExplorer stores characters in a buffer until they are sent to the host. The
buffer mode can be one of the following:
• • Character Mode—Forces HostExplorer to send each character immediately to the host.
• • Line Mode—Forces HostExplorer to send characters one line at a time until you press the Enter key. Line mode is useful
when you are trying to reduce costs on networks that charge per packet, or when you are dealing with long network delays.
By default, this property is set to HOSTEX_KEYBOARD_BUFFER_AS_CHARACTER_MODE.
Basic HOSTEX_KEYBOARD_BUFFER_MODE =
Syntax HEProfileConnection.KeyboardBufferMode
HEProfileConnection.KeyboardBufferMode =
HOSTEX_KEYBOARD_BUFFER_MODE
C++ HRESULT IHEProfileConnection::get_KeyboardBufferMode([out,
Syntax retval] HOSTEX_KEYBOARD_BUFFER_MODE *pVal);
HRESULT IHEProfileConnection::put_KeyboardBufferMode([in]
HOSTEX_KEYBOARD_BUFFER_MODE newVal);
Parameters pVal—The returned value, specifying the buffer
mode for key sequences.
newVal—The set value, specifying the buffer mode
you want HostExplorer to use for key sequences.
Basic Example Dim Profile As HEProfile
Set Profile = Terminal.Session
Dim Connection As HEProfileConnection
Set Connection = Profile.Connection
Dim bVal As HOSTEX_KEYBOARD_BUFFER_MODE
' Get value
bVal = Connection.KeyboardBufferMode
If (bVal = HOSTEX_KEYBOARD_BUFFER_AS_LINE_MODE) Then
' Set value
Connection.KeyboardBufferMode =
HOSTEX_KEYBOARD_BUFFER_AS_CHARACTER_MODE
End If
C++ IDispatch *pIDispatch;
Example pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileConnection *pConn;
pSess->get_Connection(&pConn);
HOSTEX_KEYBOARD_BUFFER_MODE bVal;
bVal = pConn->get_KeyboardBufferMode(&bVal);
if (bVal == HOSTEX_KEYBOARD_BUFFER_AS_LINE_MODE)
{
bVal = HOSTEX_KEYBOARD_BUFFER_AS_CHARACTER_MODE;
pConn->put_KeyboardBufferMode(bVal);
}
Related Topics
HOSTEX_KEYBOARD_BUFFER_MODE Data Type
Property: IHEProfileConnection::LUName
This property returns or sets a string specifying the LU (Logical Units) name that is used when you connect to a host that supports
RFC1646 or RFC2205 (TN3270). An LU contains the necessary information needed to connect to an SNA network.
Basic String = HEProfileConnection.LUName
Syntax
HEProfileConnection.LUName = String
HRESULT IHEProfileConnection::put_LUName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the LU
name.
Property: IHEProfileConnection::Modem
This property returns or sets a string specifying the modem you are using for a modem connection.
Basic String = HEProfileConnection.Modem
Syntax
HEProfileConnection.Modem = String
HRESULT IHEProfileConnection::put_Modem([in]
BSTR newVal);
Parameters pVal—The returned string, which indicates the
modem you are using.
Related Topics
Property: IHEProfileConnection::ModemID
Property: IHEProfileConnection::ModemID
This property returns or sets a value specifying the modem ID when you use a modem connection.
Basic Long = HEProfileConnection.ModemID
Syntax
HEProfileConnection.ModemID = Long
HRESULT IHEProfileConnection::put_ModemID([in]
long newVal);
Parameters pVal—The returned value, specifying the
modem ID.
Related Topics
Property: IHEProfileConnection::Modem
Property: IHEProfileConnection::NumberOfRetries
This property returns or sets a value that specifies the number of times that HostExplorer attempts to connect to all the hosts listed in the
Hosts pane until a host becomes available.
Basic Integer = HEProfileConnection.NumberOfRetries
Syntax
HEProfileConnection.NumberOfRetries = Integer
HRESULT IHEProfileConnection::put_NumberOfRetries([in]
short newVal);
Parameters pVal—The returned value that specifies the current
number of retries.
Related Topics
Property: IHEProfileConnection::RetryDelayTimeBetweenHosts
Property: IHEProfileConnection::Password
This property returns or sets a string that specifies the password used to connect to the host.
Basic String = HEProfileConnection.Password
Syntax
HEProfileConnection.Password = String
C++ HRESULT
Syntax IHEProfileConnection::get_Password([out,
retval] BSTR *pVal);
HRESULT IHEProfileConnection::put_Password([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the
password.
Property: IHEProfileConnection::Port
This property returns or sets a value that specifies the Internet port to which you are connected. You can select a number between 1 and
65534. By default, this property is set to 23.
Basic Integer = HEProfileConnection.Port
Syntax
HEProfileConnection.Port = Integer
HRESULT IHEProfileConnection::put_Port([in]
short newVal);
Parameters pVal—The returned value, specifying the
Internet port.
Related Topics
Property: IHEProfileConnection::PortList
Property: IHEProfileConnection::PortList
This property returns or sets a string that lists the port numbers you want to use. Use a semicolon (;) to separate succesive port numbers
in the string.
Basic String = HEProfileConnection.PortList
Syntax
HEProfileConnection.PortList = String
HRESULT IHEProfileConnection::put_PortList([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the list of
ports.
Related Topics
Property: IHEProfileConnection::Port
Property: IHEProfileConnection::RetryDelayTimeBetweenHosts
This property returns or sets the delay (in seconds) before HostExplorer attempts to connect to another host after attempting to connect
to an unavailable one.
Basic Integer = HEProfileConnection.RetryDelayTimeBetweenHosts
Syntax
HEProfileConnection.RetryDelayTimeBetweenHosts = Integer
C++ HRESULT
Syntax IHEProfileConnection::get_RetryDelayTimeBetweenHosts([out,
retval] short *pVal);
HRESULT
IHEProfileConnection::put_RetryDelayTimeBetweenHosts([in] short
newVal);
Parameters pVal—The returned value that specifies the current
number of seconds that elapse before HostExplorer
attempts to connect to another host.
newVal—The set value, specifying the number of
seconds that you want HostExplorer to wait before it
attempts to connect to another host.
Basic Dim Profile As HEProfile
Example Set Profile = Terminal.Session
Dim Connection As HEProfileConnection
Set Connection = Profile.Connection
Dim iVal As Integer
iVal = Connection.RetryDelayTimeBetweenHosts
If (iVal > 5) Then
Connection.RetryDelayTimeBetweenHosts = 5
End If
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileConnection *pConn;
pSess->get_Connection(&pConn);
short sVal;
pConn->get_RetryDelayTimeBetweenHosts(&sVal);
if (sVal > 5)
{
sVal= 5;
pConn->put_RetryDelayTimeBetweenHosts(sVal);
}
Related Topics
Property: IHEProfileConnection::NumberOfRetries
Property: IHEProfileConnection::ShowDialupDlg
This property returns or sets a value indicating whether HostExplorer displays the Always Show Connect Dialog flag, prompting you to
verify modem properties. This property does not affect connections that are started from OLE Automation. This property is used only for
returned or set values so that you can load or save profiles. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileConnection.ShowDialupDlg
Syntax
HEProfileConnection.ShowDialupDlg = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_ShowDialupDlg([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileConnection::put_ShowDialupDlg([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays the Always
Show Connect Dialog flag. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not display the Always Show Connect
Dialog flag.
newVal—A value of VARIANT_TRUE indicates
that HostExplorer displays the Always Show
Connect Dialog flag. A value of VARIANT_FALSE
indicates that HostExplorer does not display the
Always Show Connect Dialog flag.
Basic Example Dim Profile As HEProfile
Set Profile = Terminal.Session
Dim Connection As
HEProfileConnection
Set Connection = Profile.Connection
Dim bVal As Boolean
' Get value
bVal = Connection.ShowDialupDlg
If (bVal = False) Then
' Set value
Connection.ShowDialupDlg = True
End If
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileConnection *pConn;
pSess->get_Connection(&pConn);
VARIANT_BOOL bVal;
bVal = pConn->get_ShowDialupDlg(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pConn->put_ShowDialupDlg(bVal);
}
Property: IHEProfileConnection::SYSREQasIACIP
This property returns or sets a value indicating whether the SYSREQ key as the Telnet IAC IP sequence is enabled or disabled. By
default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileConnection.SYSREQasIACIP
Syntax
HEProfileConnection.SYSREQasIACIP = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_SYSREQasIACIP([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileConnection::put_SYSREQasIACIP([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the SYSREQ key as the Telnet IAC
IP sequence is enabled. A returned value of
VARIANT_FALSE indicates that the sequence is
disabled.
newVal—A value of VARIANT_TRUE indicates
that the SYSREQ key as the Telnet IAC IP
sequence is enabled. A value of
VARIANT_FALSE indicates that the sequence is
disabled.
Basic Example Dim Profile As HEProfile
Set Profile = Terminal.Session
Dim Connection As
HEProfileConnection
Set Connection = Profile.Connection
Dim bVal As Boolean
' Get value
bVal = Connection.SYSREQasIACIP
If (bVal = False) Then
' Set value
Connection.SYSREQasIACIP = True
End If
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileConnection *pConn;
pSess->get_Connection(&pConn);
VARIANT_BOOL bVal;
bVal = pConn->get_SYSREQasIACIP(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pConn->put_SYSREQasIACIP(bVal);
}
Property: IHEProfileConnection::TelnetEcho
This property returns or sets a value that indicates how HostExplorer responds to remote echo negotiation with a Telnet host.
Basic HOSTEX_TELNETECHO = HEProfileConnection.TelnetEcho
Syntax
HEProfileConnection.TelnetEcho = HOSTEX_TELNETECHO
HRESULT IHEProfileConnection::put_TelnetEcho([in]
HOSTEX_TELNETECHO newVal);
Parameters pVal—The returned value, which indicates how
HostExplorer responds to remote echo negotiation
with a Telnet host.
Related Topics
HOSTEX_TELNETECHO Data Type
Property: IHEProfileConnection::TelnetName
This property returns or sets a string that specifies a name to override the name used during Telnet negotiation with the host.
Basic String = HEProfileConnection.TelnetName
Syntax
HEProfileConnection.TelnetName = String
HRESULT IHEProfileConnection::put_TelnetName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying a Telnet
name.
Property: IHEProfileConnection::Timeout
This property returns or sets a value specifying the number of seconds required for HostExplorer to establish a connection before
canceling the operation. By default, this property is set to 30.
Basic Long = HEProfileConnection.Timeout
Syntax
HEProfileConnection.Timeout = Long
HRESULT IHEProfileConnection::put_Timeout([in]
long newVal);
Parameters pVal—The returned value, specifying the
number of seconds required for HostExplorer to
establish a connection.
Property: IHEProfileConnection::UponDisconnect
This property returns or sets a value specifying the action that HostExplorer performs if the host disconnects from the current session.
Basic Integer = HEProfileConnection.UponDisconnect
Syntax
HEProfileConnection.UponDisconnect = Integer
C++ HRESULT
Syntax IHEProfileConnection::get_UponDisconnect([out,
retval] short *pVal);
HRESULT IHEProfileConnection::put_UponDisconnect([in]
short newVal);
Parameters pVal—The following returned values specify the
action that HostExplorer performs in the event that the
host disconnects from the current session:
• UPONDISC_CLOSEWINDOW
• UPONDISC_KEEPWINDOWOPEN
• UPONDISC_RESTARTPROFILE
• UPONDISC_SHOWOPENNEWPROFILE
Property: IHEProfileConnection::UseDialProp
This property returns or sets a value indicating whether HostExplorer uses the settings provided in the Windows Dialing Properties
dialog box while you are installing a modem. When this property is set to VARIANT_TRUE, HostExplorer automatically adds the area
code, country code, 8, 9, or calling-card numbers, if applicable. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileConnection.UseDialProp
Syntax
HEProfileConnection.UseDialProp = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_UseDialProp([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileConnection::put_UseDialProp([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer uses the settings
provided in the Windows Dialing Properties
dialog box. A returned value of VARIANT_FALSE
indicates that HostExplorer dials using the “raw”
phone number.
Property: IHEProfileConnection::UserName
This property returns or sets a string that specifies the user name that you use to connect to the host.
Basic String = HEProfileConnection.UserName
Syntax
HEProfileConnection.UserName = String
HRESULT IHEProfileConnection::put_UserName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying your
username.
Property: IHEProfileConnection::VTDoHostWindowSize
This property returns or sets a value indicating whether HostExplorer sends or negotiates a change in window size (that is, the number
of rows and columns to the Telnet host). By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEProfileConnection.VTDoHostWindowSize
Syntax
HEProfileConnection.VTDoHostWindowSize = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_VTDoHostWindowSize([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileConnection::put_VTDoHostWindowSize([in]
VARIANT_BOOL newVal);
Parameters pVal— A returned value of VARIANT_TRUE
indicates that HostExplorer sends or negotiates a
change in window size. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not send or negotiate a change in window
size.
newVal—A value of VARIANT_TRUE indicates
that HostExplorer sends or negotiates a change in
window size. A value of VARIANT_FALSE
indicates that HostExplorer does not send or
negotiate a change in window size.
Basic Example Dim Profile As HEProfile
Set Profile = Terminal.Session
Dim Connection As HEProfileConnection
Set Connection = Profile.Connection
Dim bVal As Boolean
' Get value
bVal = Connection.VTDoHostWindowSize
If (bVal = False) Then
' Set value
Connection.VTDoHostWindowSize = True
End If
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileConnection *pConn;
pSess->get_Connection(&pConn);
VARIANT_BOOL bVal;
bVal = pConn->get_VTDoHostWindowSize(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pConn->put_VTDoHostWindowSize(bVal);
}
Property: IHEProfileConnection::VTInitiateTelnetNegotiation
This property returns or sets a value indicating whether HostExplorer (VT emulator) negotiates connection options when it establishes a
Telnet connection. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileConnection.VTInitiateTelnetNegotiation
Syntax
HEProfileConnection.VTInitiateTelnetNegotiation = Boolean
C++ HRESULT
Syntax IHEProfileConnection::get_VTInitiateTelnetNegotiation([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileConnection::put_VTInitiateTelnetNegotiation([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE indicates
that HostExplorer negotiates connection options when
it establishes a Telnet connection. A returned value of
VARIANT_FALSE indicates that HostExplorer does
not negotiate connection options when it establishes a
Telnet connection.
newVal—A value of VARIANT_TRUE indicates that
HostExplorer negotiates connection options when it
establishes a Telnet connection. A value of
VARIANT_FALSE indicates that HostExplorer does
not negotiate connection options when it establishes a
Telnet connection.
Basic Dim Profile As HEProfile
Example Set Profile = Terminal.Session
Dim Connection As HEProfileConnection
Set Connection = Profile.Connection
Dim bVal As Boolean
' Get value
bVal = Connection.VTInitiateTelnetNegotiation
If (bVal = False) Then
' Set value
Connection.VTInitiateTelnetNegotiation = True
End If
C++ IDispatch *pIDispatch;
Example pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileConnection *pConn;
pSess->get_Connection(&pConn);
VARIANT_BOOL bVal;
bVal = pConn->get_VTInitiateTelnetNegotiation(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pConn->put_VTInitiateTelnetNegotiation(bVal);
}
Property: IHEProfileConnection::VTLineMode
This property returns or sets a value specifying how HostExplorer stores characters in a buffer until you send a carriage return to the
host.
Basic HOSTEX_LINEMODE = HEProfileConnection.VTLineMode
Syntax
HEProfileConnection.VTLineMode = HOSTEX_LINEMODE
HRESULT IHEProfileConnection::put_VTLineMode([in]
HOSTEX_LINEMODE newVal);
Parameters pVal—The returned value specifying how
HostExplorer stores characters in a buffer until you
send a carriage return to the host.
Related Topics
HOSTEX_LINEMODE Data Type
ProfileSessionWindow Interface
The ProfileSessionWindow interface lets you configure settings for the session window.
Properties
The ProfileSessionWindow interface consists of the following properties:
DisplayBorder SaveFontOnExit
EnableWorkspaceBackgroundBitmap SnapFrameBack
FullScreenMode SwitchScreenType
KeepFontAspectRatio WindowTitle
LongName WorkSpaceBackgroundBitmap
PromptOnClose WorkspaceBackgroundColor
ResizeBehavior WorkspaceForegroundColor
SaveProfOnClose
Property: IHEProfileSessionWindow::DisplayBorder
This property returns or sets a value indicating whether HostExplorer fills the empty space between the terminal window and the window
frame with a gray border. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileSessionWindow.DisplayBorder
Syntax
HEProfileSessionWindow.DisplayBorder = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_DisplayBorder([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSessionWindow::put_DisplayBorder([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer creates a gray border
between the terminal window and the window
frame. A returned value of VARIANT_FALSE
indicates that HostExplorer does not display a
border, so that the screen display closely
matches any resized window.
Property: IHEProfileSessionWindow::EnableWorkspaceBackgroundBitmap
This property returns or sets a value indicating whether HostExplorer enables the bitmap for the background of the terminal screen.
Basic Boolean = HEProfileSessionWindow.EnableWorkspaceBackgroundBitmap
Syntax
HEProfileSessionWindow.EnableWorkspaceBackgroundBitmap = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_EnableWorkspaceBackgroundBitmap([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileSessionWindow::put_EnableWorkspaceBackgroundBitmap([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE indicates
that HostExplorer enables the bitmap for the
background of the terminal screen. A returned value
of VARIANT_FALSE indicates that HostExplorer uses
the default terminal screen.
Property: IHEProfileSessionWindow::FullScreenMode
This property returns or sets a value indicating whether the session will run in full-screen or regular-screen display mode.
Basic Boolean = HEProfileSessionWindow.FullScreenMode
Syntax
HEProfileSessionWindow.FullScreenMode = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_FullScreenMode([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSessionWindow::put_FullScreenMode([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the session will run in full-screen
display mode. A returned value of
VARIANT_FALSE indicates that the session will
run in regular-screen display mode.
Property: IHEProfileSessionWindow::KeepFontAspectRatio
This property returns or sets a value that specifies whether HostExplorer keeps all fonts within a normal aspect ratio. By default, this
property is set to VARIANT_TRUE.
Basic Boolean = HEProfileSessionWindow.KeepFontAspectRatio
Syntax
HEProfileSessionWindow.KeepFontAspectRatio = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_KeepFontAspectRatio([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileSessionWindow::put_KeepFontAspectRatio([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer keeps all fonts
within a normal aspect ratio. If pVal equals
VARIANT_FALSE, HostExplorer can create extra
wide or extra tall fonts.
Property: IHEProfileSessionWindow::LongName
This property returns or sets a string specifying the session Long name that appears in the OIA (Operator Information Area). The Long
name can contain up to eight characters.
Basic String = HEProfileSessionWindow.LongName
Syntax
HEProfileSessionWindow.LongName = String
HRESULT IHEProfileSessionWindow::put_LongName([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the
current session Long name.
Property: IHEProfileSessionWindow::PromptOnClose
This property returns or sets a value indicating whether HostExplorer prompts you before closing a window session. By default, this
property is set to VARIANT_TRUE.
Basic Boolean = HEProfileSessionWindow.PromptOnClose
Syntax
HEProfileSessionWindow.PromptOnClose = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_PromptOnClose([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSessionWindow::put_PromptOnClose([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer prompts you before
closing a window session. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not prompt you before closing a window
session.
Property: IHEProfileSessionWindow::ResizeBehavior
This property returns or sets a value that specifies how HostExplorer displays information in the session window when you resize the
window. By default, this property is set to HOSTEX_RESIZE_BEHAVIOR_CHANGE_FONT.
Basic HOSTEX_RESIZE_BEHAVIOR =
Syntax HEProfileSessionWindow.ResizeBehavior
HEProfileSessionWindow.ResizeBehavior =
HOSTEX_RESIZE_BEHAVIOR
C++ HRESULT IHEProfileSessionWindow::get_ResizeBehavior([out,
Syntax retval] HOSTEX_RESIZE_BEHAVIOR *pVal);
HRESULT IHEProfileSessionWindow::put_ResizeBehavior([in]
HOSTEX_RESIZE_BEHAVIOR newVal);
Parameters pVal—The returned value that specifies the current
resize behavior.
Related Topics
HOSTEX_RESIZE_BEHAVIOR Data Type
Property: IHEProfileSessionWindow::SaveProfOnClose
This property returns or sets a value indicating whether HostExplorer automatically saves any setting changes for the current profile
when you close a session. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileSessionWindow.SaveProfOnClose
Syntax
HEProfileSessionWindow.SaveProfOnClose = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_SaveProfOnClose([out,
retval] VARIANT_BOOL *pVal);
HRESULT
IHEProfileSessionWindow::put_SaveProfOnClose([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically saves
the setting changes for the current profile when
you close the session. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not save the setting changes for the current
profile when you close the session.
Property: IHEProfileSessionWindow::SaveFontOnExit
This property returns or sets a value indicating whether HostExplorer automatically saves any changes you make to either the font or the
window size to the current session profile. By default, this property is set to VARIANT_TRUE.
Basic Boolean = HEProfileSessionWindow.SaveFontOnExit
Syntax
HEProfileSessionWindow.SaveFontOnExit = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_SaveFontOnExit([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSessionWindow::put_SaveFontOnExit([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically saves
any changes you make to either the font or the
window size. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not automatically save any changes you
make to either the font or the window size.
Property: IHEProfileSessionWindow::SnapFrameBack
This property returns or sets a value indicating whether HostExplorer displays borders on the terminal screen.
Basic Boolean = HEProfileSessionWindow.SnapFrameBack
Syntax HEProfileSessionWindow.SnapFrameBack = Boolean
C++ HRESULT
Syntax IHEProfileSessionWindow::get_SnapFrameBack([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEProfileSessionWindow::put_SnapFrameBack([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer displays borders on
the terminal screen. A returned value of
VARIANT_FALSE indicates that HostExplorer
does not display borders on the terminal screen.
Property: IHEProfileSessionWindow::SwitchScreenType
This property returns or sets a value specifying the type of information that HostExplorer retains when you resize the screen.
Basic HOSTEX_SWITCHSCREENTYPE =
Syntax HEProfileSessionWindow.SwitchScreenType
HEProfileSessionWindow.SwitchScreenType =
HOSTEX_SWITCHSCREENTYPE
C++ HRESULT IHEProfileSessionWindow::get_SwitchScreenType([out,
Syntax retval] HOSTEX_SWITCHSCREENTYPE *pVal);
HRESULT IHEProfileSessionWindow::put_SwitchScreenType([in]
HOSTEX_SWITCHSCREENTYPE newVal);
Parameters pVal—The returned value, specifying the type of
information that HostExplorer retains when you resize
the screen.
Related Topics
HOSTEX_SWITCHSCREENTYPE Data Type
Property: IHEProfileSessionWindow::WindowTitle
This property returns or sets a string indicating the name and/or description displayed in the top right-hand corner of the session window.
Basic String = HEProfileSessionWindow.WindowTitle
Syntax
HEProfileSessionWindow.WindowTitle = String
C++ HRESULT
Syntax IHEProfileSessionWindow::get_WindowTitle([out,
retval] BSTR *pVal);
HRESULT IHEProfileSessionWindow::put_WindowTitle([in]
BSTR newVal);
Parameters pVal—The returned string, which indicates the
name and/or description.
Property: IHEProfileSessionWindow::WorkSpaceBackgroundBitmap
This property returns or sets a string specifying the bitmap file for the background of the terminal screen.
Basic String = HEProfileSessionWindow.WorkSpaceBackgroundBitmap
Syntax
HEProfileSessionWindow.WorkSpaceBackgroundBitmap = String
C++ HRESULT
Syntax IHEProfileSessionWindow::get_WorkSpaceBackgroundBitmap([out,
retval] BSTR *pVal);
HRESULT
IHEProfileSessionWindow::put_WorkSpaceBackgroundBitmap([in] BSTR
newVal);
Parameters pVal—The returned value, specifying the bitmap file
for the background of the terminal screen.
newVal—The set value, specifying the bitmap file for
the background of the terminal screen.
Basic Dim Profile As HEProfile
Example Set Profile = Terminal.Session
Dim SessWin As HEProfileSessionWindow
SessWin = Profile.SessionWindow
Dim bVal As Boolean
bVal = SessWin.WorkSpaceBackgroundBitmap
If (bVal = False) Then
SessWin.WorkSpaceBackgroundBitmap = True
End If
C++ Example IDispatch *pIDispatch;
pITerminal->get_Session(&pIDispatch);
IHEProfile *pSess;
pIDispatch->QueryInterface(IID_IHEProfile, (void**)
&pSess);
IHEProfileSessionWindow *pWin;
pSess->get_SessionWindow(&pWin);
VARIANT_BOOL bVal;
pWin->get_WorkSpaceBackgroundBitmap(&bVal);
if (bVal == VARIANT_FALSE)
{
bVal = VARIANT_TRUE;
pWin->put_WorkSpaceBackgroundBitmap(bVal);
}
Property: IHEProfileSessionWindow::WorkspaceBackgroundColor
This property returns or sets a value specifying the background color of the terminal screen in OLE_COLOR format.
Basic OLE_COLOR = HEProfileSessionWindow.WorkspaceBackgroundColor
Syntax
HEProfileSessionWindow.WorkspaceBackgroundColor = OLE_COLOR
C++ HRESULT
Syntax IHEProfileSessionWindow::get_WorkspaceBackgroundColor([out,
retval] OLE_COLOR *pVal);
HRESULT
IHEProfileSessionWindow::put_WorkspaceBackgroundColor([in]
OLE_COLOR newVal);
Parameters pVal—The returned value, specifying the background
color of the terminal screen.
Related Topics
OLE_COLOR Data Type
Property: IHEProfileSessionWindow::WorkspaceForegroundColor
This property returns or sets a value specifying the foreground color of the terminal screen in OLE_COLOR format.
Basic OLE_COLOR = HEProfileSessionWindow.WorkspaceForegroundColor
Syntax
HEProfileSessionWindow.WorkspaceForegroundColor = OLE_COLOR
C++ HRESULT
Syntax IHEProfileSessionWindow::get_WorkspaceForegroundColor([out,
retval] OLE_COLOR *pVal);
HRESULT
IHEProfileSessionWindow::put_WorkspaceForegroundColor([in]
OLE_COLOR newVal);
Parameters pVal—The returned value, specifying the foreground
color of the terminal screen.
Related Topics
OLE_COLOR Data Type
ProfileSound Interface
The ProfileSound interface lets you set configuration settings related to program sounds.
Properties
The ProfileSound interface consists of the following properties:
Notify
Sound
Property: IHEProfileSound::Notify
This property returns or sets a value indicating whether the Notify (Update Alarm) option is on or off. By default, this property is set to
VARIANT_FALSE.
Basic Syntax Boolean = HEProfileSound.Notify
HEProfileSound.Notify = Boolean
HRESULT
IHEProfileSound::put_Notify([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the Notify option is on. A returned
value of VARIANT_FALSE indicates that the Notify
option is off.
This property returns or sets a value indicating whether the Sound option for program sounds is on or off. By default, this property is set
to VARIANT_TRUE.
Basic Syntax Boolean = HEProfileSound.Sound
HEProfileSound.Sound = Boolean
HRESULT
IHEProfileSound::put_Sound([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the Sound option for program sounds
is on. A returned value of VARIANT_FALSE
indicates that the Sound option for program sounds
is off.
Data Types
HOSTEX_GRAPHICS_CELLSIZE
HOSTEX_GRAPHICS_CURSOR_TYPE
HOSTEX_GRAPHICS_MODEL
HOSTEX_INSERT_KEY_STYLE
HOSTEX_TRANSFER_HOSTTYPE
HOSTEX_TRANSFER_INITIALACTION
HOSTEX_TRANSFER_RECORDFORMAT
Properties
ConvertNulls
Cutmode
OnCopyReplaceFieldAttributeWith
OnPasteFieldModeTabCharacter
PasteMode
TypeAheadTimeout
ValidateNumericFieldData
Data Types
HOSTEX_CELL_DELIMITED
HOSTEX_CUT_MODE
HOSTEX_FIELD_ATTR_REPLACEMENT
HOSTEX_NEXT_FIELD_KEY
HOSTEX_PASTE_MODE
HOSTEX_STATUS_LINE_MODE
HOSTEX_TRANSFER_TARGET
HOSTEX_TRANSFER_TYPE
Data Types
HOSTEX_CAPTURE_MODE
HOSTEX_LINEMODE
HOSTEX_TELNETECHO
HOSTEX_TERMINAL_ID
HOSTOVERWRITE_BEHAVIOUR
Properties
CanChangeScreen
CellCopyMode
ConnectBy
ConnectErrorStatus
ConnectRC
HLLAPIName
KeyboardLocked
ModelColumns
ModelRows
NVTMode
OIAString
OIAStringW
ScreenChanged
ScreenCol
ScreenRow
SelectionMode
SessionName
StatusLineMode
TerminalModel
Text
Transport
Data Types
HEPARSER_FEATURE
HOSTEX_ATN_FORMAT
HOSTEX_CONNECT_BY
HOSTEX_KEYBOARD_TYPE
HOSTEX_SELECTION_MODE
HOSTEX_SWITCHSCREENTYPE
HOSTEX_TERM_MODEL
ClearSel PutString
GetCursorPosition PutText
GetFeature ReceiveFile
GetFieldAttribute ReplaceSel
GetFieldCount SendAid
GetFieldExtAttribute SetCursorPosition
GetFieldLength SetFeature
GetFieldLength SetFieldText
GetFieldText SendFile
GetScreenText SendKeys
GetSel SetSel
GetSelectionArea SetValue
GetValue WaitConnected
HostToAscii WaitForCursor
IsFieldBold WaitForCursorMove
IsFieldHidden WaitForIO
IsFieldModified WaitForString
IsFieldNumeric WaitHostQuiet
IsFieldPenSelectable WaitIdle
IsFieldProtected WaitPSUpdated
MoveCursorRelative WaitXfer
Method: IHEParser::AsciiToHost
This method converts an ASCII character into the equivalent EBCDIC host character.
Basic Syntax HEParser.AsciiToHost(inchar As BYTE)
As BYTE
C++ Syntax HRESULT IHEParser::AsciiToHost([in]
BYTE inChar, [out, retval] BYTE
*outChar);
Parameters inChar—The input character in ASCII format that
you want to convert.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
asciiChar = "A"
ebcdicChar =
Parser.AsciiToHost(asciiChar)
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
BYTE asciiChar = 'A';
BYTE *ebcdicChar;
Related Topics
Property: IHEProfileFileTransfer::ASCII
Method: IHEParser::HostToAscii
Method: IHEParser::ClearSel
This method lets you clear the previous selection on the terminal screen.
Basic Syntax HEParser.ClearSel
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
Parser.ClearSel
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
if (pHEParser())
pHEParser->ClearSel();
Method: IHEParser::GetCursorPosition
This method gets the cursor position as a row and column value.
C++ Syntax HRESULT
IHEParser::GetCursorPosition([out] short
*Row, [out] short *Column);
Parameters Row—The row position of the cursor.
if (pHEParser)
pHEParser->GetCursorPosition(&row, &column);
Related Topics
Method: IHEParser::SetCursorPosition
Method: IHEParser::GetFeature
This method lets you determine if a particular Parser feature has been enabled.
Basic Syntax HEParser.GetFeature(lType As
HEPARSER_FEATURE) As Boolean
C++ Syntax HRESULT IHEParser::GetFeature([in]
HEPARSER_FEATURE lType, [out, retval]
VARIANT_BOOL *pVal);
Parameters lType—The Parser feature that you want to check.
if (pHEParser)
{ // Determine if the word wrap feature is enabled
pHEParser->GetFeature(HOSTEX_WORD_WRAP, &OEM);
}
Related Topics
HEPARSER_FEATURE Data Type
Method: IHEParser::SetFeature
Method: IHEParser::GetFieldAttribute
This method returns the field attribute for a specified field. For the HEPAR3270 object, this method returns the 3270 attribute of the specified field. You can use the
following literals to test the bit options:
• ATTR_MODIFIED
• ATTR_BOLD
• ATTR_NUMERIC
• ATTR_PROTECTED
• ATTR_NONDISPLAY
For the HEPAR5250 object, this method returns the Field Format Word of the specified field. You can use the following literals to test the bit options:
• FFW_BYPASS • FFW_SIGNEDNUMERIC
• FFW_ALLOWDUP • FFW_AUTOENTERONEXIT
• FFW_MDT • FFW_FIELDEXITREQUIRED
• FFW_SHIFTEDITMASK • FFW_MONOCASE
• FFW_ALPHASHIFT • FFW_MANDATORYENTRY
• FFW_ALPHAONLY • FFW_RIGHTFILLMASK
• FFW_NUMERICSHIFT • FFW_NOADJUST
• FFW_NUMERICONLY • FFW_RIGHTADJUSTZEROFILL
• FFW_KATASHIFT • FFW_RIGHTADJUSTBLANKFILL
• FFW_DIGITSONLY • FFW_MANDATORYFILL
• FFW_IO
Basic HEParser.GetFieldAttribute(iFieldID As
Syntax Integer) As Integer
if (pHEParser)
{ // Get the attribute of the first field
pHEParser->GetFieldAttribute(0, &attr);
}
Related Topics
Attr Property
Method: IHEParser::GetFieldCount
if (pHEParser)
{ // Get the number fields on the current screen
pHEParser->GetFieldCount(&nFields);
}
Related Topics
Count Property (Hosts.Field Collection Object)
Method: IHEParser::GetFieldExtAttribute
This method returns the extended attribute of the specified field. The extended attribute defines the color and highlighting for the field. For the HEPAR3270 object,
this method returns the extended 3270 attribute of the specified field. You can use the following literals to test the bit options:
• ATTR_REVERSE
• ATTR_BLINK
• ATTR_UNDERLINE
For the HEPAR5250 object, this method returns the Field Control Word of the specified field. You can use the following literals to test the bit options:
• FCW_LIGHTPEN
• FCW_STRIPEANDLIGHTPEN
Basic HEParser.GetFieldExtAttribute(iFieldID
Syntax As Integer) As Integer
Related Topics
ExtAttr Property
Method: IHEParser::GetFieldLength
if (pHEParser)
{ // Get the length of the third field
pHEParser->GetFieldLength(2, &fieldLength);
}
Related Topics
Length Property
Method: IHEParser::GetFieldPos
This method returns the position of the specified field. The returned position is specified in terms of the screen buffer. For example, if the screen is 24x80, there
are 1920 possible positions. The first position on the screen is 1.
Basic Syntax HEParser.GetFieldPos(iFieldID As
Integer) As Integer
C++ Syntax HRESULT IHEParser::GetFieldPos([in]
short iFieldID, [out, retval] short
*pVal);
Parameters iFieldID —The ID of the field you want to check.
IDs start at zero (0).
if (pHEParser)
{ // Get the position of the third field
pHEParser->GetFieldPos(2, &fieldPosn);
}
Related Topics
Pos Property
Method: IHEParser::GetFieldText
This method returns the text in the specified field as a string. The system converts all Nulls to spaces and removes all trailing spaces.
Basic Syntax HEParser.GetFieldText(iFieldID As
Integer) As String
C++ Syntax HRESULT IHEParser::GetFieldText([in]
short iFieldID, [out, retval] BSTR
*pVal);
Parameters iFieldID —The ID of the field you want to check.
IDs start at zero (0).
if (pHEParser)
{ // Get the text string in the first field
pHEParser->GetFieldText(0, &fieldText);
}
Related Topics
Text Property
Method: IHEParser::SetFieldText
Method: IHEParser::GetScreenText
This method returns a string containing the portion of screen text that begins at a specified row and column and spans a specified length. The specified row and
column must be valid. The first position on the screen is Row 1 Column 1. The length value can be one of the following:
0 Copy to End of Field
if (pHEParser)
{ // Get the screen text starting at row 2, column 3, and spanning to the end of the screen
pHEParser->GetScreenText(2, 3, -3, &screenText);
}
Related Topics
TextRC Method
Method: IHEParser::GetSel
This method lets you retrieve the text in the requested selection of the SetSel method.
Basic Syntax HEParser.GetSel(pData As String)
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
rc = Parser.ReplaceSel(sCelString)
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
bstr sSel = “Here goes my text”;
if (pHEParser())
pHEParser->ReplaceSel(sSel);
SysFreeString(sSel);
Method: IHEParser::GetSelectionArea
This method returns the coordinates (top, left, bottom, right) of the current screen selection.
Basic Syntax HEParser.GetSelectionArea() As Variant
Method: IHEParser::GetValue
This method returns the current value of the specified Parser property.
Basic Syntax HEParser.GetValue(lType As
HEPARSER_VALUE) As LPARAM
C++ Syntax HRESULT IHEParser::GetValue([in]
HEPARSER_VALUE lType, [out, retval]
LPARAM *pVal);
Parameters lType—The Parser property you want to check.
if (pHEParser)
{ // Get the value of the Updated Flag property
pHEParser->GetValue(HOSTEX_UPDATED_FLAG, &pProp);
}
Related Topics
HEPARSER_VALUE Data Type
Method: IHEParser::SetValue
Method: IHEParser::HostToAscii
This method converts an EBCDIC host character into the equivalent ASCII character.
Basic Syntax HEParser.HostToAscii(inchar As BYTE)
As BYTE
C++ Syntax HRESULT IHEParser::HostToAscii([in]
BYTE inChar, [out, retval] BYTE
*outChar);
Parameters inChar—The input character in EBCDIC format
that you want to convert.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
ebcdicChar = "A"
asciiChar =
Parser.HostToAscii(ebcdicChar)
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
BYTE ebcdicChar = 'A';
BYTE *asciiChar;
Related Topics
Method: IHEParser::AsciiToHost
Method: IHEParser::IsFieldBold
if (pHEParser)
{ // Get the bold value for the first field
pHEParser->IsFieldBold(0, &isBold);
}
Related Topics
IsBold Property
Method: IHEParser::IsFieldHidden
if (pHEParser)
{ // Determine if the first field is hidden
pHEParser->IsFieldHidden(0, &isHidden);
}
Related Topics
IsHidden Property
Method: IHEParser::IsFieldModified
This method indicates whether the specified field has been modified.
Basic Syntax HEParser.IsFieldModified(iFieldID As
Integer) As Boolean
C++ Syntax HRESULT
IHEParser::IsFieldModified([in] short
iFieldID, [out, retval] VARIANT_BOOL
*pVal);
Parameters iFieldID —The ID of the field you want to check.
IDs start at zero (0).
if (pHEParser)
{ // Determine if the first field has been modified
pHEParser->IsFieldModified(0, &changed);
}
Related Topics
IsModified Property
Method: IHEParser::IsFieldNumeric
if (pHEParser)
{ // Determine if the second field is numeric only
pHEParser->IsFieldNumeric(1, &isNum);
}
Related Topics
IsNumeric Property
Method: IHEParser::IsFieldPenSelectable
if (pHEParser)
{ // Determine if the first field is pen-selectable
pHEParser->IsFieldPenSelectable(0, &isPen);
}
Related Topics
IsPenSelectable Property
Method: IHEParser::IsFieldProtected
Related Topics
IsProtected Property
Method: IHEParser::MoveCursorRelative
This method moves the cursor a specified number of rows and columns from the current position.
Basic Syntax HEParser.MoveCursorRelative(iRows As
Integer, iCols As Integer)
C++ Syntax HRESULT
IHEParser::MoveCursorRelative([in] short
iRows, [in] short iCols);
Parameters iRows—The number of rows by which you want to
move the cursor from the current position.
if (pHEParser)
{ // Move the cursor up one row and two columns to the right
pHEParser->MoveCursorRelative(-1, 2);
}
Related Topics
Method: IHEParser::SetCursorPosition
Method: IHEParser::PasteDataToScreen
This method copies data from the Clipboard to the current cursor position.
Basic Syntax HEParser.PasteDataToScreen()
if (pHEParser)
{ // Paste the contents of the Clipboard to the current cursor position
pHEParser->PasteDataToScreen();
}
Related Topics
Method: IHEParser::MoveCursorRelative
Method: IHEParser::SetCursorPosition
Method: IHEParser::PutString
Method: IHEParser::PutString
This method copies the specified string to the current cursor position.
Basic Syntax HEParser.PutString(newVal As String)
if (pHEParser)
{ // Paste the string "Hello World" to the current position
pHEParser->PutString("Hello World");
}
Related Topics
Method: IHEParser::SetCursorPosition
Method: IHEParser::PasteDataToScreen
Method: IHEParser::PutText
Method: IHEParser::PutText
This method lets you write text to a specified unprotected location on the screen. The first location on the screen is Row 1 Column 1.
Basic Syntax HEParser.PutText(bstrText As String,
vRow As Variant, vCol As Variant)
C++ Syntax HRESULT IHEParser::PutText([in] BSTR
bstrText, [in] VARIANT vRow, [in]
VARIANT vCol);
Parameters bstrText—The text you want to write to the
specified row and column.
if (pHEParser)
{ // Write "Hello World" to the screen at row 3, column 3
pHEParser->PutText("Hello World", 3, 3);
}
Related Topics
Method: IHEParser::PutString
PutText Method
Method: IHEParser::ReceiveFile
This method lets you transfer (download) a file from the host system to your machine.
Basic Syntax HEParser.ReceiveFile(bstrPCFileNAme As
String, vHostFileName As Variant,
vOptions As Variant)
C++ Syntax HRESULT IHEParser::ReceiveFile([in] BSTR
bstrPCFileName, [in] VARIANT
vHostFileName, [in] VARIANT vOptions);
Parameters bstrPCFileNAme—The name of the file on your
machine that receives the file on the host system.
Related Topics
ReceiveFile Method
Method: IHEParser::SendFile
Method: IHEParser::WaitXfer
Method: IHEParser::ReplaceSel
This method lets you write text in the selection that you specified in the SetSel method.
Basic Syntax HEParser.ReplaceSel(newText As String)
if (pHEParser())
pHEParser->ReplaceSel(sSel);
SysFreeString(sSel);
Method: IHEParser::SendAid
This method sends an “aid” or special keystroke (such as the Enter key, Tab key, or Page Up key) to the Parser object.
Basic Syntax HEParser.SendAid(nAidKey As Long)
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
Parser.SendAid(65)
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
if (pHEParser())
pHEParser->SendAid(65);
Related Topics
TN3270 Keyboard Mapping
TN5250 Keyboard Mapping
TN3270 Keyboard Mapping
The following list outlines the keyboard mapping for TN3270 terminals:
ALA-Alternate-Input VK3_ALA_INPUT
Change-Graphics-Cursor VK3_TOGGLEGRAPHICS
CURSOR
Check-Hotspot VK3_CHECKHOTSPOT
Close-Window VK3_CLOSEWINDOW
Cursor-Select VK3_CURSORSELECT
Dead-Key VK3_DEAD
Dlg-API-Settings IDM_O_EHLLAPI
Dlg-Close-Session IDM_F_CLOSESESSION
Dlg-Download IDM_T_RECEIVEDOWNLOAD
Dlg-Edit-Session-Profile IDM_O_PREFERENCES
Dlg-Exit IDM_F_EXIT
Dlg-Font-Select IDM_N_SELECTFONT
Dlg-Global IDM_O_GLOBAL
Dlg-Hotspots IDM_O_HOTSPOTS
Dlg-Keyboard-Mapper IDM_O_KEYMAPR
Dlg-Open-Session IDM_F_OPENSESSION
Dlg-Poppad-Configure IDM_O_POPPAD
Dlg-Poppad-Custom IDM_V_CUSTOM_POPPAD
Dlg-Poppad-Default IDM_V_DEFAULT_POPPAD
Dlg-Print-Screen IDM_F_PRINTSCREEN
Dlg-Prompt-Demo-File VK3_ASKFORDEMOFILE
Dlg-Prompt-Password VK3_PROMPTFORPASSWORD
Dlg-Quick-Key-Editor IDM_O_MACRO
Dlg-Run-Macro IDM_M_MACRORUN
Dlg-Run-Program VK3_RUNPGMDLG
Dlg-Save-Demo-File VK3_SAVEDEMOFILE
Dlg-Save-Profile IDM_F_SAVESESSION
Dlg-Save-Screen IDM_F_SAVESCREEN
Dlg-Translate-Tables IDM_O_XLATEDLG
Dlg-Upload IDM_T_SENDUPLOAD
End-Recording IDM_M_MACROENDRECORDING
Font-Larger IDM_N_NEXTLARGERFONT
Font-Smaller IDM_N_NEXTSMALLERFONT
Help-Index IDM_INDEXHELP
Help-Keys IDM_KEYHELP
Jump-To-Session VK3_JUMPSESSION
Insert-Field-Attribute VK3_INSERTFIELDATTRIBUTE
IPause VK3_IPAUSE
Maximize-Font IDM_N_MAXIMIZEFONT
Mouse-To-Cursor VK3_MOUSETOCURSOR
Move-Cursor-Cursor- VK3_MOVECURSORAND
Select CURSORSELECT
Move-Cursor-Enter VK3_MOVECURSORANDENTER
Next-Session VK3_NEXT_SESSION
Password VK3_PASSWORD
Pause VK3_PAUSE
Prev-Session VK3_PREV_SESSION
Print-Raw VK3_PRINTRAW
Print-Raw-LPT1 VK3_PRINTRAWLPT1
Print-Raw-LPT2 VK3_PRINTRAWLPT2
Print-Raw-LPT3 VK3_PRINTRAWLPT3
Print-Screen VK3_PRINTSCREEN
Record-Macro IDM_M_MACRORECORD
Reset-Type-Ahead VK3_RESET_TYPEAHEAD
Restore-Cursor-Position VK3_RESTORECURSOR
POSITION
Run VK3_RUNPGM
Run-Macro VK3_RUNSCRIPT
Save-Cursor-Position VK3_SAVECURSORPOSITION
Save-Screen VK3_SAVESCREEN
Show-Demo-File VK3_SHOWDEMOFILE
Show-Track-Menu VK3_SHOWTRACKMENU
Start-Session VK3_STARTSESSION
Toggle-APL-Keyboard VK3_APLTOGGLE
Toggle-Attribute VK3_FLIP_ATTR
Toggle-Capture IDM_F_CAPTURE
Toggle-Connection VK3_TOGGLE_CONNECTION
Toggle-CrossHair-Cursor VK3_TOGGLECROSSHAIR
Toggle-Cursor VK3_TOGGLE_CURSOR
Toggle-Entry-Assist VK3_ENTRY_ASSIST
Toggle-Full-Screen VK3_FULLSCREEN
Toggle-Recording-Pause IDM_M_MACROPAUSE
RECORDING
Toggle-Toolbar IDM_V_TOOLBAR
Toggle-Tracing VK3_TOGGLETRACE
Toggle-Word-Wrap VK3_WORD_WRAP
Whats-This? VK3_WHATSTHIS
Close-Window VK3_CLOSEWINDOW
Cursor-Select VK3_CURSORSELECT
Dead-Key VK3_DEAD
Dlg-API-Settings IDM_O_EHLLAPI
Dlg-Close-Session IDM_F_CLOSESESSION
Dlg-Download IDM_T_RECEIVEDOWNLOAD
Dlg-Edit-Session-Profile IDM_O_PREFERENCES
Dlg-Exit IDM_F_EXIT
Dlg-Font-Select IDM_N_SELECTFONT
Dlg-Global IDM_O_GLOBAL
Dlg-Hotspots IDM_O_HOTSPOTS
Dlg-Keyboard-Mapper IDM_O_KEYMAPR
Dlg-Open-Session IDM_F_OPENSESSION
Dlg-Poppad-Configure IDM_O_POPPAD
Dlg-Poppad-Custom IDM_V_CUSTOM_POPPAD
Dlg-Poppad-Default IDM_V_DEFAULT_POPPAD
Dlg-Print-Screen IDM_F_PRINTSCREEN
Dlg-Prompt-Demo-File VK3_ASKFORDEMOFILE
Dlg-Prompt-Password VK3_PROMPTFORPASSWORD
Dlg-Quick-Key-Editor IDM_O_MACRO
Dlg-Run-Macro IDM_M_MACRORUN
Dlg-Run-Program VK3_RUNPGMDLG
Dlg-Save-Demo-File VK3_SAVEDEMOFILE
Dlg-Save-Profile IDM_F_SAVESESSION
Dlg-Save-Screen IDM_F_SAVESCREEN
Dlg-Translate-Tables IDM_O_XLATEDLG
Dlg-Upload IDM_T_SENDUPLOAD
End-Recording IDM_M_MACROEND
RECORDING
Font-Larger IDM_N_NEXTLARGERFONT
Font-Smaller IDM_N_NEXTSMALLERFONT
Help-Index IDM_INDEXHELP
Help-Keys IDM_KEYHELP
Insert-Field-Attribute VK3_INSERTFIELDATTRIBUTE
IPause VK3_IPAUSE
Jump-To-Session VK3_JUMPSESSION
Maximize-Font IDM_N_MAXIMIZEFONT
Mouse-To-Cursor VK3_MOUSETOCURSOR
Move-Cursor-Cursor- VK3_MOVECURSORAND
Select CURSORSELECT
Move-Cursor-Enter VK3_MOVECURSORANDENTER
Next-Session VK3_NEXT_SESSION
Password VK3_PASSWORD
Pause VK3_PAUSE
Prev-Session VK3_PREV_SESSION
Print-Raw VK3_PRINTRAW
Print-Raw-LPT1 VK3_PRINTRAWLPT1
Print-Raw-LPT2 VK3_PRINTRAWLPT2
Print-Raw-LPT3 VK3_PRINTRAWLPT3
Print-Screen VK3_PRINTSCREEN
Record-Macro IDM_M_MACRORECORD
Reset-Type-Ahead VK3_RESET_TYPEAHEAD
Restore-Cursor-Position VK3_RESTORECURSOR
POSITION
Run VK3_RUNPGM
Run-Macro VK3_RUNSCRIPT
Save-Cursor-Position VK3_SAVECURSORPOSITION
Save-Screen VK3_SAVESCREEN
Show-Demo-File VK3_SHOWDEMOFILE
Show-Track-Menu VK3_SHOWTRACKMENU
Start-Session VK3_STARTSESSION
Toggle-Attribute VK3_FLIP_ATTR
Toggle-Capture IDM_F_CAPTURE
Toggle-Connection VK3_TOGGLE_CONNECTION
Toggle-CrossHair-Cursor VK3_TOGGLECROSSHAIR
Toggle-Cursor VK3_TOGGLE_CURSOR
Toggle-Entry-Assist VK3_ENTRY_ASSIST
Toggle-Full-Screen VK3_FULLSCREEN
Toggle-Recording-Pause IDM_M_MACROPAUSE
RECORDING
Toggle-Toolbar IDM_V_TOOLBAR
Toggle-Tracing VK3_TOGGLETRACE
Toggle-Word-Wrap VK3_WORD_WRAP
Whats-This? VK3_WHATSTHIS
Method: IHEParser::SendFile
This method lets you transfer (upload) a specified file from your machine to the host system.
Basic Syntax HEParser.SendFile(bstrPCFileNAme As
String, vHostFileName As Variant,
vOptions As Variant)
C++ Syntax HRESULT IHEParser::SendFile([in] BSTR
bstrPCFileName, [in] VARIANT
vHostFileName, [in] VARIANT vOptions);
Parameters bstrPCFileNAme—The name of the file on your
machine that you want to transfer to the host system.
if (pHEParser)
{ // 3270 mode upload
pHEParser->SendFile("c:\config.sys", "CONFIG SYS A1", "( ASCII CRLF");
// VT mode upload
pHEParser->SendFile("c:\config.sys", XFER_TYPE_ZMODEM);
}
Related Topics
SendFile Method
Method: IHEParser::ReceiveFile
Method: IHEParser::WaitXfer
Method: IHEParser::SendKeys
This method sends general keystrokes (other than function keys) to the host.
Basic Syntax HEParser.SendKeys(pBuffer As String)
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
Parser.SendKeys ("Hello")
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
if (pHEParser())
pHEParser->SendKeys(“Hello”);
Method: IHEParser::SetCursorPosition
This method lets you specify the row and column position of the cursor.
Basic Syntax HEParser.SetCursorPosition(Row As
Integer, Column As Integer)
C++ Syntax HRESULT
IHEParser::SetCursorPosition(short
Row, short Column);
Parameters Row—The row position of the cursor.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser = ActiveSession.HEParserPtr
rc = Parser.SetCursorPosition(5, 5)
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
if (pHEParser())
pHEParser->SetCursorPosition(5,5)
Method: IHEParser::SetFeature
if (pHEParser)
{ // Enable the word wrap feature
pHEParser->SetFeature(HOSTEX_WORD_WRAP, VARIANT_TRUE);
}
Related Topics
HEPARSER_FEATURE Data Type
Method: IHEParser::GetFeature
Method: IHEParser::SetFieldText
This method lets you specify the text for a particular field.
Basic Syntax HEParser.SetFieldText(iFieldID As
Integer, newVal As String)
C++ Syntax HRESULT IHEParser::SetFieldText([in]
short iFieldID, [in] BSTR newVal);
Parameters iFieldID —The ID of the field you want to modify.
IDs start at zero (0).
if (pHEParser)
{ // Set "Hello World" as the text of the first field
pHEParser->SetFieldText(0, fieldText);
}
Related Topics
Method: IHEParser::GetFieldText
Method: IHEParser::SetSel
This method creates a selection using the following four coordinates: start row, end row, start column, and end column.
Basic Syntax HEParser.SetSel(StartRow As Integer,
StartCol As Integer, EndRow As
Integer, EndCol As Integer)
C++ Syntax HRESULT IHEParser::SetSel(short
StartRow, short StartCol, short
EndRow, short EndCol);
Parameters StartRow—The first row of the selection.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
rc = Parser.SetSel(1,1,5,5)
C++ Example HRESULT Hr;
IHEParser *pHEParser = NULL;
IHostExHost *pHost = NULL;
IHostExApplication *pApplication = NULL;
if (pHEParser())
{
pHEParser->SetSel(1,1,5,5);
}
Related Topics
Property: IHEParser::SelectionMode
Method: IHEParser::SetValue
This method lets you set the value of a particular Parser property.
Basic Syntax HEParser.SetValue(lType As
HEPARSER_VALUE, newVal As LPARAM)
C++ Syntax HRESULT IHEParser::SetValue([in]
HEPARSER_VALUE lType, [in] LPARAM
newVal);
Parameters lType—The Parser property you want to set.
if (pHEParser)
{ // Set the Updated Flag property
pHEParser->SetValue(HOSTEX_UPDATED_FLAG, ?);
}
Related Topics
HEPARSER_VALUE Data Type
Method: IHEParser::GetValue
Method: IHEParser::WaitConnected
This method lets you specify a maximum wait time for establishing a connection to the host system.
Basic Syntax HEParser.WaitConnected(lType As Long)
Related Topics
WaitConnected Method
Method: IHEParser::WaitHostQuiet
Method: IHEParser::WaitForCursor
This method lets you specify a wait time for the cursor to move into a particular row (and, optionally, a particular column).
Basic Syntax HEParser.WaitForCursor(iRow As
Integer, vCol As Variant, lTimeout As
Long) As Boolean
C++ Syntax HRESULT IHEParser::WaitForCursor([in]
short iRow, [in] VARIANT vCol, [in]
long lTimeOut, [out, retval]
VARIANT_BOOL *pVal);
Parameters iRow—The row you want to check.
Related Topics
Method: IHEParser::WaitForCursorMove
Method: IHEParser::WaitForCursorMove
This method lets you specify a wait time for the cursor to move through a particular number of rows (and, optionally, a particular number of columns).
Basic Syntax HEParser.WaitForCursorMove(iRows As
Integer, iCols As Variant, lTimeout As
Long) As Boolean
C++ Syntax HRESULT
IHEParser::WaitForCursorMove([in]
short iRows, [in] VARIANT iCols, [in]
long lTimeOut, [out, retval]
VARIANT_BOOL *pVal);
Parameters iRows—The number of rows through which the
cursor must move.
Related Topics
Method: IHEParser::WaitForCursor
Method: IHEParser::WaitForIO
This method lets you specify a wait time for the user to press an action key such as Enter or PFx.
Basic Syntax HEParser.WaitForIO(lTimeout As Long)
Related Topics
WaitForIO Method
Method: IHEParser::WaitForString
This method lets you specify a wait time for a particular string to appear in a particular row and column. You can limit the search for the string to a certain row or
specify a certain row as the upper limit for the search. You can also force case-sensitive searches.
Basic HEParser.WaitForString(szString As
Syntax String, iRow As Integer, iCol As Integer,
iFlag As Integer, lTimeOut As Long,
bCaseSensitive As Boolean) As Integer
C++ HRESULT IHEParser::WaitForString([in]
Syntax BSTR szString, [in] short iRow, [in]
short iCol, [in] short iFlag, [in] long
lTimeOut, [in] VARIANT_BOOL
bCaseSensitive, [out, retval] short
*pVal);
Parameters szString—The string for which you want to wait.
Related Topics
Method: IOhioScreen::WaitForString
Method: IHEParser::WaitHostQuiet
This method lets you specify a wait time for the host to be idle after you have connected to the host. You also specify the length of idle time for which you want to
wait.
Basic Syntax HEParser.WaitHostQuiet(vTime As
Variant, lTimeout As Long) As Boolean
C++ Syntax HRESULT IHEParser::WaitHostQuiet([in]
VARIANT vTime, [in] long lTimeOut,
[out, retval] VARIANT_BOOL *pVal);
Parameters vTime—The length of idle time (in seconds) on the
host for which you want to wait.
Related Topics
Method: IHEParser::WaitConnected
Method: IHEParser::WaitIdle
This method lets you specify a period of idle time for the screen. An idle screen is one that does not change during the specified period.
Basic Syntax HEParser.WaitIdle(lIdleTime As Long)
Related Topics
WaitIdle Method (OLE Host Object)
Method: IHEParser::WaitPSUpdated
This method lets you specify a wait time for the screen to be updated.
Basic Syntax HEParser.WaitPSUpdated(lIdleTime As
Long, vWaitKeyb As Variant) As Boolean
C++ Syntax HRESULT IHEParser::WaitPSUpdated([in]
long lIdleTime, [in] VARIANT
vWaitKeyb, [out, retval] short *pVal);
Parameters lIdleTime—The length of time (in seconds) for
which you want to wait for the screen to update.
vWaitKeyb—
Related Topics
WaitPSUpdated Method (OLE Host Object)
Method: IHEParser::WaitXfer
This method suspends program operation until the preceding file transfer is complete. You can use this method to synchronize your program with the host system.
Basic Syntax HEParser.WaitXfer()
Related Topics
WaitXfer Method (OLE Host Object)
Method: IHEParser::SendFile
Method: IHEParser::ReceiveFile
Properties of the Parser Objects
Properties define the characteristics of an object. The Parser objects have the following properties:
AnswerBack OnPasteFieldModeTabCharacter
APLInputMode PassthruMode7171
AutoWrap PasteMode
BufRows PrintByPassWindows
CanChangeScreen PrinterDeInitString
CaptureMode PrintDisableTranslation
CellCopyMode PrinterInitString
ConnectBy Printer
ConnectErrorStatus PrinterTimeout
ConnectRC PrinterTimeoutValue
ConvertNulls PrintLFtoCRLF
Cutmode ProgramSymbols
EnableAPL SaveAppend
EnablePrinterTimeout SaveFileName
GraphicsCursorType ScreenChanged
GraphicsModel ScreenCol
HistoryLines ScreenRow
HLLAPIName SelectionMode
HostResponseTime SessionName
HostWritableString SoftCharacterSetID
KeyboardLocked StatusLineMode
ModelColumns TerminalID
ModelRows TerminalModel
MoveCursorOnMouseClick Text
NRCID TPrintOutput
NumericCharacters Transport
NVTMode TypeAheadTimeout
OIAString UPSS
OIAStringW ValidateNumericFieldData
OnCopyReplaceFieldAttributeWith TransferErrorCode
TransferMode
Property: IHEParser::Answerback
This property sets the Answer Back message.
Basic Syntax HEParser.Answerback = String
Property: IHEParser::APLInputMode
This property indicates whether the session is in APL (A Program Language) input mode. By default, this property is set to VARIANT_FALSE.
Basic Syntax Boolean = HEParser.APLInputMode
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser = ActiveSession.HEParserPtr
if (pHEParser())
pHEParser->get_ APLInputMode(&pVal);
Property: IHEParser::BufRows
This property returns or sets the maximum number of rows, including the scrollback buffer. This number can vary between 1 and 9,999. By default, this property is
set to 100. To disable the scrollback buffer, set the number to 0.
Basic Integer = HEParser.BufRows
Syntax
HEParser.BufRows = Integer
Hr =
CoCreateInstance(CLSID_HostExApplication,
NULL, CLSCTX_SERVER,
IID_IHostExApplication, (void
**)&pApplication);
pApplication->get_CurrentHost(pHost);
pHost->get_HEParserPtr(&pHEParser);
if (pHEParser())
{ // get value
pHEParser->get_BufRows(&pVal);
// set value
pHEParser->get_BufRows(newVal);
}
Property: IHEParser::CanChangeScreen
This property returns or sets a value that specifies whether the screen can change.
Basic Boolean = HEParser.CanChangeScreen
Syntax
HEParser.CanChangeScreen = Boolean
HRESULT IHEParser::put_CanChangeScreen([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, you can change the screen contents.
If pVal equals VARIANT_FALSE, you cannot change
the screen.
newVal—The new value (VARIANT_TRUE or
VARIANT_FALSE) you set to indicate if the screen
contents can be changed.
Related Topics
Property: IHEParser::ScreenChanged
Property: IHEParser::CaptureMode
This property specifies how to capture selected text.
Basic Syntax HOSTEX_CAPTURE_MODE =
HEParser.CaptureMode
HEParser.CaptureMode =
HOSTEX_CAPTURE_MODE
C++ Syntax HRESULT
IHEParser::get_CaptureMode([out,
retval] HOSTEX_CAPTURE_MODE *pVal);
HRESULT
IHEParser::put_CaptureMode([in]
HOSTEX_CAPTURE_MODE newVal);
Parameters pVal—The returned value, indicating whether the
capture mode is raw or binary.
if (pHEParser())
{ // get value
pHEParser->get_CaptureMode(&HOSTEX_CAPTURE_MODE_VAL);
// set value
pHEParser->put_CaptureMode(HOSTEX_CAPTURE_MODE_TEXT);
}
Related Topics
HOSTEX_CAPTURE_MODE Data Type
Property: IHEParser::CellCopyMode
This property sets or returns a value that specifies whether HostExplorer parses data by words or by field attributes when copying data to the Clipboard in cell-
delimited format. Parsing by field attributes lets you copy data to the Clipboard in CSV (Comma-Separated Value) and BIF (Binary Interchange Format) formats.
CSV and BIF are common formats used by spreadsheet applications.
Basic HOSTEX_CELL_DELIMITED =
Syntax HEParser.CellCopyMode
HEParser.CellCopyMode =
HOSTEX_CELL_DELIMITED
C++ HRESULT IHEParser::get_CellCopyMode([out,
Syntax retval] HOSTEX_CELL_DELIMITED *pVal);
HRESULT IHEParser::put_CellCopyMode([in]
HOSTEX_CELL_DELIMITED newVal);
Parameters pVal—The returned value which indicates the cell
copy mode currently in effect.
newVal—The set value which specifies the new cell
copy mode.
Basic Example Dim OLE1 As Object
Dim ActiveSession As Object
Dim Parser As Object
Dim HOSTEX_CELL_COPY_MODE As
HOSTEX_CELL_DELIMITED
if (pHEParser())
{ // store the current copy mode in HOSTEX_CELL_COPY_MODE
pHEParser->get_CellCopyMode(&HOSTEX_CELL_COPY_MODE);
// set the cell copy mode to copy by field
pHEParser->put_CellCopyMode(HOSTEX_CELL_DELIMITED_FIELD);
}
Related Topics
HOSTEX_CELL_DELIMITED Data Type
Property: IHEParser::ConnectBy
This property returns or sets a value indicating the method of connection (connection protocol) between the client machine and the host. By default, the property is
set to HOSTEX_CONNECT_BY_TELNET.
Basic Syntax HOSTEX_CONNECT_BY = HEParser.ConnectBy
HEParser.ConnectBy = HOSTEX_CONNECT_BY
HRESULT IHEParser::put_ConnectBy([in]
HOSTEX_CONNECT_BY newVal);
Parameters pVal—The returned value, indicating the
connection.
Related Topics
HOSTEX_CONNECT_BY data type
Property: IHEParser::ConnectErrorStatus
C++ HRESULT
Syntax IHEParser::get_ConnectErrorStatus([out,
retval] short *pVal);
Parameters pVal—The returned value that indicates the
connection error status
Property: IHEParser::ConnectRC
This property returns a code that indicates whether the terminal is connecting, already connected, or neither.
Basic Syntax Integer = HEParser.ConnectRC
C++ Syntax HRESULT IHEParser::get_ConnectRC([out,
retval] short *pVal);
Parameters pVal—The returned value that indicates the
connection status
Related Topics
Property: IHEParser::ConnectByProperty_IHEParser_ConnectBy>Second
Property: IHEParser::ConvertNulls
This property converts zeros (nulls) to blank characters in input fields, when you copy text from one input field to another. By default, this property is set to
VARIANT_FALSE.
Basic Syntax Boolean = HEParser.ConvertNulls
HEParser.ConvertNulls = Boolean
HRESULT
IHEParser::put_ConvertNulls([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the system converts nulls to blank
characters in input fields. A returned value of
VARIANT_FALSE indicates that the system does
not convert nulls to blank characters in input fields.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser = ActiveSession.HEParserPtr
Property: IHEParser::CutMode
This property removes selected text from unprotected areas of the screen. By default, this property is set to HOSTEX_CUT_MODE_DELETE_TEXT.
Basic Syntax HOSTEX_CUT_MODE = HEParser.CutMode
HEParser.CutMode = HOSTEX_CUT_MODE
HRESULT IHEParser::put_CutMode([in]
HOSTEX_CUT_MODE newVal);
Parameters pVal—The returned value indicates how the
selected text is removed.
if (pHEParser())
{ // get value
pHEParser->get_CutMode(&HOSTEX_CUT_MODE_VAL);
// set value
pHEParser->put_CutMode(HOSTEX_CUT_MODE_DELETE_TEXT);
}
Related Topics
HOSTEX_CUT_MODE Data Type
Property: IHEParser::EnableAPL
This property enables APL (A Program Language) mode. By default, this property is set to VARIANT_FALSE.
Basic Syntax Boolean = HEParser.EnableAPL
HEParser.EnableAPL = Boolean
HRESULT IHEParser::put_EnableAPL([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the system enables APL mode. A
returned value of VARIANT_FALSE indicates that
the system does not enable APL mode.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_EnableAPL (&APL);
// set value
pHEParser->put_EnableAPL (TRUE);
}
Property: IHEParser::EnablePrinterTimeout
This property lets you enable or disable the delay of printer output.
Basic Boolean = HEParser.EnablePrinterTimeout
Syntax
HEParser.EnablePrinterTimeout = Boolean
HRESULT
IHEParser::put_EnablePrinterTimeout([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE indicates
that HostExplorer enables the delay of printer output. A
returned value of VARIANT_FALSE indicates that
HostExplorer disables the delay of printer output.
if (pHEParser())
{ // get value
pHEParser->get_EnablePrinterTimeout(&PrintTimeout);
// set value
pHEParser->put_EnablePrinterTimeout(TRUE);
}
Property: IHEParser::GraphicsCursorType
This property lets you determine how the cursor appears in the terminal window.
Basic HOSTEX_GRAPHICS_CURSOR_TYPE =
Syntax HEParser.GraphicsCursorType
HEParser.GraphicsCursorType =
HOSTEX_GRAPHICS_CURSOR_TYPE
C++ HRESULT
Syntax IHEParser::get_GraphicsCursorType([out,
retval] HOSTEX_GRAPHICS_CURSOR_TYPE) *pVal);
HRESULT IHEParser::put_GraphicsCursorType([in]
HOSTEX_GRAPHICS_CURSOR_TYPE) newVal);
Parameters pVal—The returned value, which indicates how the
cursor appears in the terminal window.
if (pHEParser())
{ // get value
pHEParser->get_GraphicsCursorType(&HOSTEX_GRAPHICS_CURSOR_TYPE_VAL);
// set value
pHEParser->put_GraphicsCursorType(HOSTEX_GRAPHICS_CURSOR_TYPE_LARGE_CROSS_WHITE);
}
Related Topics
HOSTEX_GRAPHICS_CURSOR_TYPE Data Type
Property: IHEParser::GraphicsModel
This property lets you select the graphics terminal model to use during the next session.
Basic Syntax HOSTEX_GRAPHICS_MODEL =
HEParser.GraphicsModel
HEParser.GraphicsModel =
HOSTEX_GRAPHICS_MODEL
C++ Syntax HRESULT IHEParser::get_GraphicsModel([out,
retval] HOSTEX_GRAPHICS_MODEL *pVal);
HRESULT IHEParser::put_GraphicsModel([in]
HOSTEX_GRAPHICS_MODEL newVal);
Parameters pVal—The returned value, which indicates the graphics
terminal model to use during the session.
if (pHEParser())
{ // get value
pHEParser->get_GraphicsModel(&HOSTEX_GRAPHICS_MODEL_VAL);
// set value
pHEParser->put_GraphicsModel(HOSTEX_GRAPHICS_MODEL_3179G);
}
Related Topics
HOSTEX_GRAPHICS_MODEL Data Type
Property: IHEParser::HistoryLines
This property returns or sets the number of lines available in the Scrollback buffer.
Basic Syntax Integer = HEParser.HistoryLines
HEParser.HistoryLines = Integer
HRESULT
IHEParser::put_HistoryLines([in] short
newVal);
Parameters pVal—The returned number of lines available in
the Scrollback buffer.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser = ActiveSession.HEParserPtr
Property: IHEParser::HLLAPIName
This property returns or sets the HLLAPI name that provides access to a session.
Basic Syntax String = HEParser.HLLAPIName
HEParser.HLLAPIName = String
HRESULT
IHEParser::put_HLLAPIName([in] BSTR
newVal);
Parameters pVal—The returned HLLAPI name.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_HLLAPIName(&bstrHLLAPIName);
// set value
pHEParser->put_HLLAPIName (“A”);
}
SysFreeString(bstrHLLAPIName);
Property: IHEParser::HostResponseTime
This property returns the response time of the host.
Basic Long = HEParser.HostResponseTime
Syntax
Property: IHEParser::HostWritableString
This property returns the text in the host status line of the operator information area (OIA).
Basic String = HEParser.HostWritableString
Syntax
C++ HRESULT
Syntax IHEParser::get_HostWritableString([out,
retval] BSTR *pVal);
Parameters pVal—The returned string that appears in the
host status line of the OIA.
Basic Example Dim OLE1 As Object
Dim ActiveSession As Object
Dim Parser As Object
Dim sWriteString As String
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_HostWritableString(&bstrWriteString);
}
SysFreeString(bstrWriteString);
Property: IHEParser::KeyboardLocked
This property locks the keyboard, and prevents HostExplorer from accepting and displaying pressed keys.
Basic Integer = HEParser.KeyboardLocked
Syntax
HEParser.KeyboardLocked = Integer
HRESULT
IHEParser::put_KeyboardLocked([in]
short newVal);
Parameters pVal—The returned value, which indicates that the
keyboard is locked.
Property: IHEParser::ModelColumns
This property returns or sets the number of columns supported by the terminal model.
Basic Syntax Integer = HEParser.ModelColumns
HEParser.ModelColumns = Integer
HRESULT
IHEParser::put_ModelColumns([in] short
newVal);
Parameters pVal—The returned number of columns supported
by the terminal model.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser = ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_ModelColumns(&iCols);
// set value
pHEParser->put_ModelColumns(90);
}
Property: IHEParser::ModelRows
This property returns or sets the number of rows supported by the terminal model.
Basic Syntax Integer = HEParser.ModelRows
HEParser.ModelRows = Integer
HRESULT IHEParser::put_ModelRows([in]
short newVal);
Parameters pVal—The returned number of rows supported by
the terminal model.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_ModelRows(&iRows);
// set value
pHEParser->put_ModelRows(30);
}
Property: IHEParser::NRCID
This property returns or sets the ID of the NRC (National Replacement Character) set.
Basic Syntax String = HEParser.NRCID
HEParser.NRCID = String
C++ Syntax HRESULT IHEParser::get_NRCID([out,
retval] BSTR *pVal);
HRESULT IHEParser::put_NRCID([in]
BSTR newVal);
Parameters pVal—The returned string for the NRC set.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_NRCID(&sNRCID);
// set value
pHEParser->put_NRCID(“&”);
}
SysFreeString(sNRCID);
Related Topics
TNVT NRC Language-Conversion Table
Property: IHEParser::NumericCharacters
This property lets you specify which characters are valid numeric characters.
Basic HEParser.NumericCharacters = String
Syntax
if (pHEParser)
{ // Specify the set of valid numeric characters
pHEParser->put_NumericCharacters("0123456789.+-");
}
Property: IHEParser::NVTMode
This property indicates whether the system is in NVT mode (or Linemode).
Basic Syntax Boolean = HEParser.NVTMode
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
Property: IHEParser::OIAString
This property returns the text of the host status line in the OIA (Operator Information Area).
Basic Syntax String = HEParser.OIAString
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_OIAString(&sOIA);
}
SysFreeString(sOIA);
Property: IHEParser::OIAStringW
This property returns the wide character string of the host status line in the OIA (Operator Information Area).
Basic Syntax String = HEParser.OIAStringW
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_OIAStringW(&sOIAW);
}
SysFreeString(sOIAW);
Related Topics
Property: IHEParser::OIAString
Property: IHEParser::PassthruMode7171
This property specifies for what escape sequences HostExplorer searches to enable or disable the printer port.
Basic Integer = HEParser.PassthruMode7171
Syntax
HEParser.PassthruMode7171 = Integer
C++ Syntax HRESULT
IHEParser::get_PassthruMode7171([out,
retval] int *pVal);
HRESULT
IHEParser::put_PassthruMode7171([in]
int newVal);
Parameters pVal—The returned value, indicating the escape
sequences to enable or disable the printer port.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
Hr = CoCreateInstance
(CLSID_HostExApplication, NULL,
CLSCTX_SERVER,
IID_IHostExApplication, (void
**)&pApplication);
pApplication->get_CurrentHost(pHost);
pHost->get_HEParserPtr(&pHEParser);
if (pHEParser())
{ // get value
pHEParser->get_PassthruMode7171
(&iPass);
// set value
pHEParser->put_PassthruMode7171
(1234);
}
Property: IHEParser::PasteMode
This property lets you determine how HostExplorer pastes the contents of the clipboard to the current cursor location. By default, this property is set to
HOSTEX_PASTE_MODE_PASTE_BLOCK.
Basic Syntax HOSTEX_PASTE_MODE = HEParser.PasteMode
HEParser.PasteMode = HOSTEX_PASTE_MODE
HRESULT IHEParser::put_PasteMode([in]
HOSTEX_PASTE_MODE newVal);
Parameters pVal—The returned string, indicating how
HostExplorer pastes the contents of the clipboard to
the current cursor location.
if (pHEParser())
{ // get value
pHEParser->get_PasteMode(&HOSTEX_PASTE_MODE_KEY_VAL);
// set value
pHEParser->put_PasteMode(HOSTEX_PASTE_MODE_PASTE_OVERLAY);
}
Related Topics
HOSETX_PASTE_MODE Data Type
Property: IHEParser::PrintByPassWindows
This property lets you specify whether HostExplorer bypasses the Windows print driver.
Basic HEParser.PrintByPassWindows = Boolean
Syntax
Property: IHEParser::PrinterDeInitString
This property sends the de-initialization strings to the printer for passthru printing. It also defines the escape sequences that can be sent to the printer at the end of
a print job. Each string can contain up to 255 characters.
Basic String = HEParser.PrinterDeInitString
Syntax
HEParser.PrinterDeInitString = String
HRESULT IHEParser::put_PrinterDeInitString([in]
BSTR newVal);
Parameters pVal—The returned de-initialization strings that
are sent to the printer for passthru printing.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_PrinterDeInitString(&sDeInit);
// set value
pHEParser->put_PrinterDeInitString(“@#$%!”);
}
SysFreeString(sDeInit);
Property: IHEParser::PrintDisableTranslation
This property lets you specify whether HostExplorer disables Host-to-PC translation.
Basic HEParser.PrintDisableTranslation = Boolean
Syntax
C++ HRESULT
Syntax IHEParser::put_PrintDisableTranslation([in]
VARIANT_BOOL newVal);
Parameters newVal—The set value. If newVal equals
VARIANT_TRUE, HostExplorer disables Host-to-PC
translation. If newVal equals VARIANT_FALSE,
HostExplorer enables Host-to-PC translation.
Property: IHEParser::PrinterInitString
This property sends the initialization strings to the printer for passthru printing. It also defines the escape sequences that can be sent to the printer at the beginning
of a print job. Each string can contain up to 255 characters.
Basic String = HEParser.PrinterInitString
Syntax
HEParser.PrinterInitString = String
HRESULT
IHEParser::put_PrinterInitString([in]
BSTR newVal);
Parameters pVal—The returned initialization strings that are sent
to the printer for passthru printing.
if (pHEParser())
{ // get value
pHEParser->get_PrinterInitString(&sInit);
// set value
pHEParser->put_PrinterInitString(“@#$%!”);
}
SysFreeString(sInit);
Property: IHEParser::PrinterTimeout
This property returns or sets the delay (in seconds) before the printer outputs a page.
Basic Long = HEParser.PrinterTimeout
Syntax
HEParser.PrinterTimeout = Long
HRESULT
IHEParser::put_PrinterTimeout([in] long
newVal);
Parameters pVal—The returned value, indicating the delay
before the printer outputs a page.
if (pHEParser())
{ // get value
pHEParser->get_PrinterTimeout(&printTimeout);
// set value
pHEParser->put_PrinterTimeout(10);
}
Property: IHEParser::PrinterTimeoutValue
This property lets you specify the timeout value for the DO_PRNCTRL command.
Basic HEParser.PrinterTimeoutValue = Integer
Syntax
Property: IHEParser::PrintLFtoCRLF
This property lets you specify whether HostExplorer expands linefeed (LF) characters to carriage return + linefeed (CR + LF) characters when printing.
Basic Syntax HEParser.PrintLFtoCRLF = Boolean
Property: IHEParser::ProgramSymbols
This property lets you determine whether HostExplorer supports program symbols. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEParser.ProgramSymbols
Syntax
HEParser.ProgramSymbols = Boolean
HRESULT
IHEParser::put_ProgramSymbols([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer supports Program
symbols. A returned value of VARIANT_FALSE
indicates that HostExplorer does not support
Program symbols.
if (pHEParser())
{ // get value
pHEParser->get_ProgramSymbols(&bSymbol);
// set value
pHEParser->put_ProgramSymbols(TRUE);
}
Property: IHEParser::OnCopyReplaceFieldAttributeWith
This property replaces field attributes with a tab, comma, or paragraph mark. By default, this property is set to
HOSTEX_FIELD_ATTR_REPLACEMENT_COMMA.
Basic HOSTEX_FIELD_ATTR_REPLACEMENT =
Syntax HEParser.OnCopyReplaceFieldAttributeWith
HEParser.OnCopyReplaceFieldAttributeWith =
HOSTEX_FIELD_ATTR_REPLACEMENT
C++ HRESULT
Syntax IHEParser::get_OnCopyReplaceFieldAttributeWith([out,
retval] HOSTEX_FIELD_ATTR_REPLACEMENT *pVal);
HRESULT IHEParser::put_OnCopyReplaceFieldAttributeWith([in]
HOSTEX_FIELD_ATTR_REPLACEMENT newVal);
Parameters pVal—The returned value, indicating how the field
attribute is replaced.
if (pHEParser())
{ // get value
pHEParser->get_OnCopyReplaceFieldAttributeWith (&HOSTEX_FIELD_ATTR_REPLACEMENT_VAL);
// set value
pHEParser->put_OnCopyReplaceFieldAttributeWith (HOSTEX_FIELD_ATTR_REPLACEMENT_COMMA);
}
Related Topics
HOSTEX_FIELD_ATTR_REPLACEMENT Data Type
Property: IHEParser::OnPasteFieldModeTabCharacter
This property lets you set and retrieve the character that HostExplorer uses as a tab character when you paste data from the Clipboard. This property applies only
if the Paste Mode is HOSTEX_PASTE_MODE_PASTE_FIELD.
Basic HOSTEX_NEXT_FIELD_KEY =
Syntax HEParser.OnPasteFieldModeTabCharacter
HEParser.OnPasteFieldModeTabCharacter =
HOSTEX_NEXT_FIELD_KEY
C++ HRESULT IHEParser::get_OnPasteFieldModeTabCharacter
Syntax ([out, retval] HOSTEX_NEXT_FIELD_KEY *pVal);
HRESULT IHEParser::put_OnPasteFieldModeTabCharacter
([in] HOSTEX_NEXT_FIELD_KEY newVal);
Parameters pVal—The returned value indicating the character
HostExplorer uses as a tab character between pasted
fields.
if (pHEParser)
{ // get value
pHEParser->get_OnPasteFieldModeTabCharacter(&HOSTEX_NEXT_FIELD_KEY_VAL);
// set value to the TAB character
pHEParser->put_OnPasteFieldModeTabCharacter(HOSTEX_NEXT_FIELD_KEY_TAB);
}
Related Topics
HOSTEX_NEXT_FIELD_KEY Data Type
Property: IHEParser::PasteMode
Property: IHEParser::SaveAppend
This property lets you specify whether HostExplorer appends the current screen capture to previously saved screen captures.
Basic Syntax HEParser.SaveAppend = Boolean
Related Topics
Property: IHEParser::SaveFileName
Property: IHEParser::SaveFileName
This property sets the name of the file that HostExplorer uses to store screen captures.
Basic Syntax HEParser.SaveFileName = String
Related Topics
Property: IHEParser::SaveAppend
Property: IHEParser::ScreenChanged
This property returns or sets a value that specifies whether the contents of the screen have changed.
Basic Syntax Boolean = HEParser.ScreenChanged
HEParser.ScreenChanged = Boolean
HRESULT
IHEParser::put_ScreenChanged([in] BOOL
newVal);
Parameters pVal—The returned value. If pVal equals TRUE,
the screen contents have changed. If pVal equals
FALSE, the screen contents have not changed.
Related Topics
Property: IHEParser::CanChangeScreen
Property: IHEParser::ScreenCol
HEParser.ScreenCol = Integer
C++ Syntax HRESULT IHEParser::get_ScreenCol([out,
retval] short *pVal);
HRESULT IHEParser::put_ScreenCol([in]
short newVal);
Parameters pVal—The returned value indicating the current
column position of the cursor.
Related Topics
Property: IHEParser::ScreenRow
Property: IHEParser::ScreenRow
HEParser.ScreenRow = Integer
HRESULT IHEParser::put_ScreenRow([in]
short newVal);
Parameters pVal—The returned value indicating the current
row position of the cursor.
Related Topics
Property: IHEParser::ScreenCol
Property: IHEParser::SelectionMode
This property returns or sets the type of selection (that is, stream or rectangular). By default, this property is set to HOSTEX_SELECTION_MODE_BLOCK.
Basic Syntax HOSTEX_SELECTION_MODE =
HEParser.SelectionMode
HEParser.SelectionMode =
HOSTEX_SELECTION_MODE
C++ Syntax HRESULT
IHEParser::get_SelectionMode([out,
retval] HOSTEX_SELECTION_MODE *pVal);
HRESULT
IHEParser::put_SelectionMode([in]
HOSTEX_SELECTION_MODE newVal);
Parameters pVal—The returned value, indicating the selection
type.
Related Topics
HOSTEX_SELECTION_MODE Data Type
Property: IHEParser::SessionName
This property returns or sets 16 bytes of data in the Operator Information Area (OIA).
Basic Syntax String = HEParser.SessionName
HEParser.SessionName = String
HRESULT
IHEParser::put_SessionName([in] BSTR
newVal);
Parameters pVal—The returned string that is displayed in the
OIA.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser = ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_SessionName(&sName);
// set value
pHEParser->put_SessionName(“A – Sess”);
}
SysFreeString(sName);
Property: IHEParser::SoftCharacterSetID
This property returns the ID of the soft character set that is currently loaded on the host machine.
Basic Integer = HEParser.SoftCharacterSetID
Syntax
C++ HRESULT
Syntax IHEParser::get_SoftCharacterSetID([out,
retval] short *pVal);
Parameters pVal—The returned ID of the soft character set.
Basic Example Dim OLE1 As Object
Dim ActiveSession As Object
Dim Parser As Object
Dim iChrID As Integer
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_SoftCharacterSetID(&iChrID);
// set value
pHEParser->put_SoftCharacterSetID(1);
}
Property: IHEParser::StatusLineMode
This property returns or sets the type of status linemode (that is, terminal or window). By default, this property is set to
HOSTEX_STATUS_LINE_MODE_WINDOWSTATUSBAR.
Basic HOSTEX_STATUS_LINE_MODE =
Syntax HEParser.StatusLineMode
HEParser.StatusLineMode =
HOSTEX_STATUS_LINE_MODE
C++ Syntax HRESULT
IHEParser::get_StatusLineMode([out,
retval] HOSTEX_STATUS_LINE_MODE *pVal);
HRESULT
IHEParser::put_StatusLineMode([in]
HOSTEX_STATUS_LINE_MODE newVal);
Parameters pVal—The returned value, indicating the type of
status linemode.
Related Topics
HOSTEX_STATUS_LINE_MODE Data Type
Property: IHEParser::TerminalID
This property returns or sets the terminal ID response that HostExplorer sends to the host. By default, this property is set to HOSTEX_TERMINAL_ID_VT220.
Basic Syntax HOSTEX_TERMINAL_ID =
HEParser.TerminalID
HEParser.TerminalID =
HOSTEX_TERMINAL_ID
C++ Syntax HRESULT
IHEParser::get_TerminalID([out,
retval] HOSTEX_TERMINAL_ID *pVal);
HRESULT IHEParser::put_TerminalID([in]
HOSTEX_TERMINAL_ID newVal);
Parameters pVal—The returned terminal ID response.
if (pHEParser())
{ // get value
pHEParser->get_TerminalID(&HOSTEX_TERMINAL_ID_VAL);
// set value
pHEParser->put_TerminalID(HOSTEX_TERMINAL_ID_VT220);
}
Related Topics
HOSTEX_TERMINAL_ID Data Type
Property: IHEParser::TerminalModel
This property returns or sets the terminal model supported by HostExplorer. For TN3270 and TN5250 terminals, the default for this property is set to
HOSTEX_TERM_MODEL_2. For TNVT terminals, the default is set to HOSTEX_TERM_MODEL_VT220.
Basic Syntax HOSTEX_TERM_MODEL =
HEParser.TerminalModel
HEParser.TerminalModel =
HOSTEX_TERM_MODEL
C++ Syntax HRESULT
IHEParser::get_TerminalModel([out,
retval] HOSTEX_TERM_MODEL *pVal);
HRESULT
IHEParser::put_TerminalModel([in]
HOSTEX_TERM_MODEL newVal);
Parameters pVal—The returned value, indicating the terminal
model supported by HostExplorer.
if (pHEParser())
{ // get value
pHEParser->get_TerminalMode(&HOSTEX_TERM_MODEL_VAL);
// set value
pHEParser->put_TerminalMode(HOSTEX_TERM_MODEL_TERM_IBM3151);
}
Related Topics
HOSTEX_TERM_MODEL Data Type
Property: IHEParser::Text
This property sets or returns the entire presentation space as a string value.
Basic Syntax String = HEParser.Text
HEParser.Text = String
Property: IHEParser::TprintOutput
This property returns or sets a value indicating where HostExplorer puts information received from a host TPRINT program. By default, this property is set to
HOSTEX_TPRINT_OUTPUT_DEFAULT_WIN_PRINTER.
Basic Syntax HOSTEX_TPRINT_OUTPUT =
HEParser.TPrintOutput
HEParser.TPrintOutput =
HOSTEX_TPRINT_OUTPUT
C++ Syntax HRESULT
IHEParser::get_TPrintOutput([out,
retval] HOSTEX_TPRINT_OUTPUT *pVal);
HRESULT
IHEParser::put_TPrintOutput([in]
HOSTEX_TPRINT_OUTPUT newVal);
Parameters pVal—The returned value, indicating where the
print job is sent.
newVal—The set value, indicating where the print
job is sent.
Basic Dim OLE1 As Object
Example Dim ActiveSession As Object
Dim Parser As Object
Dim HOSTEX_TPRINT_OUTPUT_VAL As
HOSTEX_TPRINT_OUTPUT
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser = ActiveSession.HEParserPtr
Hr = CoCreateInstance
(CLSID_HostExApplication, NULL,
CLSCTX_SERVER,
IID_IHostExApplication, (void
**)&pApplication);
pApplication->get_CurrentHost(pHost);
pHost->get_HEParserPtr(&pHEParser);
if (pHEParser())
{ // get value
pHEParser->get_TPrintOutput
(&HOSTEX_TPRINT_OUTPUT_VAL);
// set value
pHEParser->put_TPrintOutput
(HOSTEX_TPRINT_OUTPUT_CLIPBOARD);
}
Related Topics
HOSTEX_TPRINT_OUTPUT Data Type
Property: IHEParser::Transport
This property returns or sets the callback pointer to the Transport interface.
Basic Syntax Object = HEParser.Transport
HEParser.Transport = Object
HRESULT IHEParser::put_Transport([in]
IUnknown *newVal);
Parameters pVal—The returned callback pointer to the
Transport interface.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_Transport(&ITransport);
// set value
pHEParser->put_Transport(ITransport);
}
Property: IHEParser::TypeAheadTimeout
This property returns or sets the number (in milliseconds) that HostExplorer waits for a host response before canceling the attempt and clearing the type-ahead
keyboard queue. By default, this option is set to 0, which means infinite timeout.
Basic Long = HEParser.TypeAheadTimeout
Syntax
HEParser.TypeAheadTimeout = Long
HRESULT
IHEParser::put_TypeAheadTimeout([in]
long newVal);
Parameters pVal—The returned value, indicating the time delay.
if (pHEParser())
{ // get value
pHEParser->get_TypeAheadTimeout(&TypeAhead);
// set value
pHEParser->put_TypeAheadTimeout(5);
}
Property: IHEParser::ValidateNumericFieldData
This property allows only numeric characters to be displayed in a numeric field. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEParser.ValidateNumericFieldData
Syntax
HEParser.ValidateNumericFieldData = Boolean
C++ HRESULT IHEParser::get_ValidateNumericFieldData([out,
Syntax retval] VARIANT_BOOL *pVal);
HRESULT IHEParser::put_ValidateNumericFieldData([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE indicates
that only numeric characters are accepted in the input
field. A returned value of VARIANT_FALSE indicates
that any character can be accepted in the input field.
if (pHEParser())
{ // get value
pHEParser->get_ValidateNumericFieldData (&bValidator);
// set value
pHEParser->put_ValidateNumericFieldData(TRUE);
}
Property: IHEParser::MoveCursorOnMouseClick
This property lets you force HostExplorer to automatically move the cursor on a mouse-click. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HEParser.MoveCursorOnMouseClick
Syntax
HEParser.MoveCursorOnMouseClick = Boolean
C++ HRESULT
Syntax IHEParser::get_MoveCursorOnMouseClick([out,
retval] VARIANT_BOOL *pVal);
HRESULT IHEParser::put_MoveCursorOnMouseClick([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE indicates
that HostExplorer automatically moves the cursor on a
mouse-click. A returned value of VARIANT_FALSE
indicates that HostExplorer does not automatically
move the cursor on a mouse-click.
if (pHEParser())
{ // get value
pHEParser->get_MoveCursorOnMouseClick(&bMoveCurOnClick);
// set value
pHEParser->put_MoveCursorOnMouseClick(TRUE);
}
Property: IHEParser::UPSS
This property returns or sets the User Preferred Supplemental Character Set (UPSS). By default, this property is set to VTCS_ISO_8859_1.
Basic Integer = HEParser.UPSS
Syntax
HEParser.UPSS = Integer
Hr =
CoCreateInstance(CLSID_HostExApplication,
NULL, CLSCTX_SERVER,
IID_IHostExApplication, (void
**)&pApplication);
pApplication->get_CurrentHost(pHost);
pHost->get_HEParserPtr(&pHEParser);
if (pHEParser())
{ // get value
pHEParser->get_UPSS(&iUPSS);
// set value
pHEParser->put_UPSS(234);
}
Related Topics
TNVT UPSS Language-Conversion Table
Property: IHEParser::AutoWrap
This property indicates whether to automatically wrap lines that extend past the last column on the screen. The default value is VARIANT_FALSE.
Basic Syntax Boolean = HEParser.AutoWrap
HEParser.AutoWrap = Boolean
HRESULT IHEParser::put_AutoWrap([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that HostExplorer automatically wraps
lines that extend past the last column on the
screen. A returned value of VARIANT_FALSE
indicates that HostExplorer discards data that
extends past the end of the screen.
Set OLE1 =
CreateObject("HostExplorer")
Set ActiveSession = OLE1.CurrentHost
Set Parser =
ActiveSession.HEParserPtr
if (pHEParser())
{ // get value
pHEParser->get_AutoWrap(&bAutoWrap);
// enable automatic wrapping
pHEParser->put_AutoWrap(VARIANT_TRUE);
}
Property: IHEParser::TransferErrorCode
This property returns the error code from a file-transfer operation.
Basic Long = HEParser.TransferErrorCode
Syntax
if (pHEParser())
{ // get value
pHEParser->get_TransferErrorCode(&myErrorCode);
}
Property: IHEParser::TransferMode
This property indicates whether to do an upload (send data to the host) or a download (retrieve data from the host). By default, this property is set to 0.
Basic HOSTEX_TRANSFER = HEParser.TransferMode
Syntax
HEParser.TransferMode(=HOSTEX_TRANSFER)
HRESULT IHEParser::put_TransferMode([in]
HOSTEX_TRANSFER newVal);
Parameters pVal—The returned value, indicating whether to do
an upload or download.
if (pHEParser())
{ // get value
pHEParser->get_ TransferMode(&HOSTEX_TRANSFER_VAL);
// set value
pHEParser->put_TransferMode(HOSTEX_TRANSFER_DOWNLOAD);
}
Related Topics
HOSTEX_TRANSFER Data Type
Properties
The OhioManager interface consists of the following properties:
OhioVersion
Sessions
VendorName
VendorObject
VendorProductVersion
Method: IOhioManager::CloseSession
This method closes an OhioSession object. The OhioSession is considered invalid and is
removed from the list of OhioSession objects.
Basic Syntax OhioManager.CloseSession(inSession As
Variant)
C++ Syntax HRESULT
IOhioManager::CloseSession([in]
VARIANT inSession);
Parameters inSession—The IOhioSession that you want to
close.
Basic Dim OManager As OhioManager
Example Dim OSession As OhioSession
. . .
OManager.CloseSession (OSession)
‘close by session name
OManager.CloseSession ("aix")
C++ Example IOhioSession* pOhioSession;
IOhioManager* pOhioManager;
VARIANT vr;
. . .
vr.vt = VT_DISPATCH;
pOhioSession->QueryInterface
(IID_IDispatch, (void **)
&vr.pdispVal);
vr.pdispVal->Release();
pOhioManager->CloseSession(vr);
Method: IOhioManager::OpenSession
This method creates an OhioSession object.
Basic OhioManager.OpenSession(inConfigResource
Syntax As String, inSessionName As String) As
OhioSession
C++ Syntax HRESULT IOhioManager::OpenSession([in]
BSTR inConfigResource, [in] BSTR
inSessionName, [out, retval]
IOhioSession * * outSession);
Parameters inConfigResource—The Hummingbird profile
name.
if (FAILED(hr)){…} //error
SysFreeString(l_bstrHEProfile);
SysFreeString(l_bstrSessionName);
Property: IOhioManager::OhioVersion
This property returns the Ohio version level of the implementation.
Basic String = OhioManager.OhioVersion
Syntax
Property: IOhioManager::Sessions
This property returns an OhioSessions object containing the OhioSession objects available on
the system. Once the OhioSessions object is created, the list of objects is static. Use the
OhioSessions.Refresh method to update the list.
Basic Syntax OhioSessions = OhioManager.Sessions
Property: IOhioManager::VendorName
This property returns the name of the vendor that is providing the OHIO implementation.
Basic Syntax String = OhioManager.VendorName
Property: IOhioManager::VendorObject
This property returns the address of the vendor object that provides non-standard, vendor-
specific extensions to the Ohio object.
Basic Dispatch = OhioManager.VendorObject
Syntax
Property: IOhioManager::VendorProductVersion
This property returns the vendor product version that is providing the OHIO implementation.
Basic String = OhioManager.VendorProductVersion
Syntax
OhioSessions Interface
The OhioSessions interface contains a collection of all the available sessions. You can use this
interface to request a specific session or determine the number of sessions available. Because
the list of sessions is static, you can use a refresh function to get an updated list.
Methods
The OhioSessions interface consists of the following method:
Refresh
Properties
The OhioSessions interface consists of the following properties:
Count
Item
Method: IOhioSessions::Refresh
This method updates the list of sessions with all the available OhioSession objects. Updating
does not preserve the indexing of OhioSession objects.
Basic Syntax OhioSessions.Refresh
Property: IOhioSessions::Count
This property returns the number of OhioSession objects contained in the collection.
Basic Syntax Long = OhioSessions.Count
C++ Syntax HRESULT
IOhioSessions::get_Count([out,
retval] long * pVal);
Parameters pVal—The returned value of the IOhioSession
objects contained in the collection.
Basic Dim OManager As OhioManager
Example Dim OSessions As OhioSessions
Dim num As Long
. . .
‘access the count from OhioSessions
object
num = OSessions.Count
‘access count directly from
OhioManager
num = OManager.OSessions.Count
C++ Example long lCount;
IOhioSessions* pIOhioSessions;
. . .
pIOhioSessions->Refresh();
HRESULT hr = pIOhioSessions-
>get_Count
(&lCount);
if (FAILED (hr)) {…} //error
Property: IOhioSessions::Item
This property returns the OhioSession object at the specified index (one-based indexing) or
name of the session.
Basic Syntax OhioSession = OhioSessions.Item
OhioSessions.Item = VARIANT
OhioSession Interface
The OhioSession interface allows you to connect to or disconnect from the host and access the
host through the screen. It can provide you with the following data:
• session type (for example, 3270, 5250, VT)
• session name (for example, Session 1, Session 2)
• session status (for example, connected or disconnected)
Methods
The OhioSession interface consists of the following methods:
Connect
Disconnect
isConnected
OnSessionChanged
Properties
CanChangeScreen
ConfigurationResource
Screen
SessionName
SessionType
Method: IOhioSession::Connect
This method starts the communications link to the host.
Basic Syntax OhioSession.Connect
pIOhioManager->OpenSession
(l_bstrHEProfile, bstrSessionName,
&pIOhioSession);
SysFreeString(bstrHEProfile);
SysFreeString(bstrSessionName);
pIOhioSession->Connect();
pIOhioSession->Disconnect();
Method: IOhioSession::Disconnect
This method stops the communications link to the host.
Basic Syntax OhioSession.Disconnect
pIOhioManager->OpenSession
(l_bstrHEProfile, bstrSessionName,
&pIOhioSession);
SysFreeString(bstrHEProfile);
SysFreeString(bstrSessionName);
pIOhioSession->Connect();
pIOhioSession->Disconnect();
Method: IOhioSession::isConnected
This method indicates whether the OhioSession object is connected to a host.
Basic Syntax Boolean = OhioSession.isConnected
Method: IOhioSession::OnSessionChanged
This method is called when the state of the session changes.
Basic OhioSession.OnSessionChanged(inState As
Syntax OHIO_STATE)
Related Topics
OHIO_STATE Data Type
Property: IOhioSession::CanChangeScreen
This property indicates whether you or the host can change the contents of the screen.
Basic Boolean = OhioSession.CanChangeScreen
Syntax
OhioSession.CanChangeScreen = Boolean
HRESULT
IOhioSession::put_CanChangeScreen([in]
VARIANT_BOOL newVal);
Parameters pVal—The system returns a value of VARIANT_TRUE
if you or the host can change the screen contents. It
returns VARIANT_FALSE if you or the host cannot
change the screen contents.
Property: IOhioSession::ConfigurationResource
This property returns a vendor-specific string (Hummingbird profile) used to indicate
configuration information.
Basic String = OhioSession.ConfigurationResource
Syntax
Property: IOhioSession::Screen
This property returns the OhioScreen object for the session.
Basic OhioScreen = OhioSession.Screen
Syntax
Property: IOhioSession::SessionName
This property returns a unique name associated with an OhioSession object.
Basic String = OhioSession.SessionName
Syntax
Property: IOhioSession::SessionType
This property returns the session type for the OhioSession object.
Basic OHIO_TYPE = OhioSession.SessionType
Syntax
Related Topics
OHIO_TYPE Data Type
OhioScreen Interface
The OhioScreen interface is the host’s virtual screen. It contains all the characters and
attributes that would be seen on a traditional emulator screen. This interface is the primary
object for text-based interactions with the host.
The interface provides methods such as manipulating text, searching the screen, sending
keystrokes to the host, and handling the cursor. It lets you request an object that contains a
collection of fields. Specifically, it can return the OIA (Operator Information Area) object.
Note: You can obtain an OhioScreen object from the Screen property of an instance
of OhioSession.
The data on the screen is maintained in a series of planes, which can be accessed by various
methods within the OhioScreen interface. Most of the methods in this interface work with the
text plane, which contains the actual characters in the presentation place. The remaining planes
(color, field, and extended) contain the corresponding attributes for each character in the text
plane.
Methods
The OhioScreen interface consists of the following methods:
FindString
GetData
OnCursorMoved
OnScreenChanged
OnSizeChanged
PutString
SendKeys
WaitForInput
WaitForString
WaitIdle
Properties
The OhioScreen interface consists of the following properties:
Columns
Cursor
Fields
OIA
Rows
String
Method: IOhioScreen::FindString
This method searches the text plane for the target string. If it finds the string, the method returns
an OhioPosition object containing the target location. If it does not find the string, the method
returns a null. The target string must be completely contained in the target area for the search to
be successful.
Basic Syntax OhioScreen.FindString(inText As
String, inStart As IOhioPosition,
inLen As Long, inDir As
OHIO_DIRECTION, inIgnoreCase As
Boolean) As OhioPosition
C++ Syntax HRESULT IOhioScreen::FindString([in]
BSTR inText, [in] IOhioPosition *
inStart, [in] long inLen, [in]
OHIO_DIRECTION inDir, [in]
VARIANT_BOOL inIgnoreCase, [out,
retval] IOhioPosition * * outPos);
Parameters inText—The target string.
Set OPosStart =
OSession.CreateOhioPosition(0, 0)
Set OPos =
OScreen.FindString("login",
OPosStart, 100, ODir, True)
if (pIOhioPosition==NULL)
//String not found
else
…
SysFreeString(bstrWaitFor);
Related Topics
OHIO_DIRECTION Data Type
Method: IOhioScreen::GetData
This method returns a byte array from the text, color, field, or extended plane of the virtual
screen by specifying the starting and ending position.
Basic OhioScreen.GetData(inStart As IOhioPosition, inEnd As
Syntax IOhioPosition, inPlane As OHIO_PLANE) As VARIANT
inEnd—The row and column where the search is to end. The position
is inclusive.
Related Topics
OHIO_COLOR Data Type
OHIO_EXTENDED Data Type
OHIO_FIELD Data Type
OHIO_PLANE Data Type
Method: IOhioScreen::OnCursorMoved
This method is called when the cursor moves.
Basic OhioScreen.OnCursorMoved(inNewPosition
Syntax As IOhioPosition)
Method: IOhioScreen::OnScreenChanged
This method is called when the screen changes.
Basic OhioScreen.OnScreenChanged(inUpdate As
Syntax OHIO_UPDATE, inStart As IOhioPosition,
inEnd As IOhioPosition)
C++ Syntax HRESULT
IOhioScreen::OnScreenChanged([in]
OHIO_UPDATE inUpdate, [in]
IOhioPosition * inStart, [in]
IOhioPosition * inEnd);
Parameters inUpdate—Whether you or the host changed the
screen.
Related Topics
OHIO_UPDATE Data Type
Method: IOhioScreen::OnSizeChanged
This method is called when the size of the screen changes.
Basic Syntax OhioScreen.OnSizeChanged(inNewRows As
Long, inNewColumns As Long)
C++ Syntax HRESULT
IOhioScreen::OnSizeChanged([in] long
inNewRows, [in] long inNewColumns);
Parameters inNewRows—The number of rows in the changed
screen.
Method: IOhioScreen::PutString
This method sends a string to the virtual screen at the specified location. The string displays in
only unprotected fields; any parts of the string in protected fields are discarded.
Basic OhioScreen.PutString(inText As String,
Syntax inStart As IOhioPosition)
BSTR bstrText;
bstrText=SysAllocString(OLESTR("jack123"));
pIOhioScreen->PutString(bstrText,
pOhioPos);
SysFreeString(bstrText);
Method: IOhioScreen::SendKeys
This method sends a string of keys to the virtual screen as if keystrokes were being typed from
the keyboard. The keystrokes are sent to the location you specify. If you do not provide a
location, the keystrokes are sent to the current cursor location.
Basic OhioScreen.SendKeys(inText As String, inPos
Syntax As IOhioPosition)
SysFreeString(bstrText);
SysFreeString(bstrEnter);
Related Topics
Mnemonic Keywords for Method IOhioScreen.SendKeys
Mnemonic Keywords
In the method OhioScreen.SendKeys, HostExplorer sends a string of keys so that it appears on
the virtual screen. You can use mnemonic keywords to send special functions or AID keys.
The following rules apply to mnemonic keywords:
• Enclose keywords in square brackets ([ ]).
• Keywords are not case-sensitive. For example, [Attn] is identical to [attn].
• Square brackets that should appear as literal values need to be escaped by doubling them
(for example, ]]). The first bracket escapes the second.
Examples of strings for the SendKeys method are as follows:
abc [pf1] Sends the characters a-b-c
[backspace] [[x]] Sends the 3270 backspace key followed by three “[x]” characters.
xyz[[[CLEAR] Sends the characters x-y-z-[ followed by the 3270 Clear AID key.
The following list contains mnemonic keywords that are valid for the method
OhioScreen.SendKeys:
Mnemonic 3270 Function Description
[attn] Attention AID key
[clear] Clear AID key
[cursorselect] Cursor Select AID key
[enter] Enter AID key
[sysreq] System Request
[pa1] Program Attention 1 AID key
[pa2] Program Attention 2 AID key
[pa3] Program Attention 3 AID key
[pf1] Program Function 1 AID key
[pf2] Program Function 2 AID key
[pf3] Program Function 3 AID key
[pf4] Program Function 4 AID key
[pf5] Program Function 5 AID key
[pf6] Program Function 6 AID key
[pf7] Program Function 7 AID key
[pf8] Program Function 8 AID key
[pf9] Program Function 9 AID key
[pf10] Program Function 10 AID key
[pf11] Program Function 11 AID key
[pf12] Program Function 12 AID key
[pf13] Program Function 13 AID key
[pf14] Program Function 14 AID key
[pf15] Program Function 15 AID key
[pf16] Program Function 16 AID key
[pf17] Program Function 17 AID key
[pf18] Program Function 18 AID key
[pf19] Program Function 19 AID key
[pf20] Program Function 20 AID key
[pf21] Program Function 21 AID key
[pf22] Program Function 22 AID key
[pf23] Program Function 23 AID key
[pf24] Program Function 24 AID key
[tab] Tab forward to next unprotected field
[backtab] Tab backward to previous unprotected field
[up] Cursor up
[down] Cursor down
[right] Cursor right
[left] Cursor left
[fastup] Cursor up two rows
[fastdown] Cursor down two rows
[fastright] Cursor right two positions
[fastleft] Cursor left two positions
[home] Home
[newline] New line—move to first unprotected field on next or
subsequent line
[reset] Reset—clear keyboard lock and clear insert mode
[insert] Insert mode—turns on insert mode for all subsequent
keystrokes until [reset]
[backspace] Destructive Backspace—move cursor one position left,
delete character, shift remainder of field one position left
[delete] Delete at cursor, shift remainder of field one position left
[eraseinput] Erase input—clear all unprotected fields
[eraseof] Erase from cursor to end of field, inclusive
[dup] Duplicate
[fieldmark] Field Mark
Method: IOhioScreen::WaitForInput
This method allows HostExplorer to wait for the keyboard to be unlocked.
Basic Syntax OhioScreen.WaitForInput(inTimeOut As
Long)
C++ Syntax HRESULT IOhioScreen::WaitForInput(long
inTimeOut, IOhioPosition * * outPos);
Parameters inTimeOut—The specified expiry time (in
seconds).
Method: IOhioScreen::WaitForString
This method allows HostExplorer to wait for the specified string to appear on the screen.
Basic OhioScreen.WaitForString(inString As
Syntax String, inRow As Integer, inCol As
Integer, inFlag As Long, inTimeOut As
Long, inIgnoreCase As Boolean) As
OhioPosition
C++ Syntax HRESULT IOhioScreen::WaitForString(BSTR
inString, short inRow, short inCol, long
inFlag, long inTimeOut, VARIANT_BOOL
inIgnoreCase, IOhioPosition * * outPos);
Parameters inString—The specified string.
if (pIOhioPosition==NULL)
//String not found
else
//String found
SysFreeString(bstrWaitFor);
Method: IOhioScreen::WaitIdle
This method allows the session to idle for a specified number of seconds.
Basic Syntax OhioScreen.WaitIdle(inIdleTime As
Long)
C++ Syntax HRESULT IOhioScreen::WaitIdle(long
inIdleTime);
Parameters inIdleTime—The number of seconds that the
session is idle.
Basic Example Dim iTimeOut As Long
Dim OScreen As OhioScreen
. . .
iTimeOut = 10
OScreen.WaitIdle(iTimeOut)
Property: IOhioScreen::Columns
This property returns the number of columns in the virtual screen.
Basic Syntax Long = OhioScreen.Columns
Property: IOhioScreen::Cursor
This property returns or sets the location of the cursor in the virtual screen. The OhioPosition
object contains the row and column of the cursor.
Basic Syntax OhioPosition = OhioScreen.Cursor
OhioScreen.Cursor = IOhioPosition
Property: IOhioScreen::Fields
This property returns the OhioFields object associated with the virtual screen, providing another
way to access the data on the screen. The OhioFields object contains a static view of all the
fields in the current virtual screen. Fields provide methods for interpreting the data in the non-
text planes.
Note: Zero-length fields (caused by adjacent field attributes) are not returned in the
OhioFields collection. For unformatted screens, the returned collection contains only
one OhioField object, which contains the whole virtual screen.
Property: IOhioScreen::OIA
This property returns the OhioOIA object associated with the virtual screen. You can use this
object to query the status of the Operator Information Area (OIA).
Basic Syntax OhioOIA = OhioScreen.OIA
Property: IOhioScreen::Rows
This property returns the number of rows in the virtual screen.
Basic Syntax Long = OhioScreen.Rows
Property: IOhioScreen::String
This property returns the entire text plane of the virtual screen as a string. This property returns
all null characters and field attribute characters as blank space characters.
Basic Syntax String = OhioScreen.String
OhioOIA Interface
The OhioOIA interface returns the Operator Information Area (OIA) object of a host session.
The OhioOIA object contains the information displayed at the bottom of the screen, which
provides the user with the session name, IP address, column and row numbers, and cursor
position.
Properties
The OhioOIA interface consists of the following properties:
Alphanumeric
APL
CommCheckCode
Inputinhibited
InsertMode
MachineCheckCode
Numeric
Owner
ProgCheckCode
Property: IOhioOIA::Alphanumeric
This property indicates whether the cursor is in an alphanumeric field.
Basic Syntax Boolean = OhioOIA.Alphanumeric
Property: IOhioOIA::APL
This property indicates whether the session is in A Program Language (APL) input mode.
Basic Syntax Boolean = OhioOIA.APL
Property: IOhioOIA::CommCheckCode
This property returns the communication check code if the InputInhibited property returns
OHIO_INPUTINHIBITED_COMMCHECK.
Basic Syntax Long = OhioOIA.CommCheckCode
Related Topics
OHIO_INPUTINHIBITED Data Type
Property: IOhioOIA::InputInhibited
This property indicates whether input is inhibited. If input is inhibited, the system prohibits
SendKeys or SendAid methods to the OhioScreen interface. The returned value can indicate
the reason that input is inhibited. If input is inhibited for more than one reason, the highest value
is returned.
Basic Syntax OHIO_INPUTINHIBITED =
OhioOIA.InputInhibited
C++ Syntax HRESULT
IOhioOIA::get_InputInhibited([out,
retval] OHIO_INPUTINHIBITED * pVal);
Parameters pVal— The returned value, indicating whether
input is inhibited.
Basic Dim OIA As OhioOIA
Example Dim ChkCode As Long
Dim InputInhibited As
OHIO_INPUTINHIBITED
. . .
InputInhibited = OIA.InputInhibited
If (InputInhibited =
OHIO_INPUTINHIBITED_COMMCHECK) Then
‘input inhibited
ChkCode = OIA.CommCheckCode
…
End If
C++ IOhioOIA* pIOhioOIA;
Example long lChkCode;
OHIO_INPUTINHIBITED InputInhib;
. . .
pIOhioOIA->get_InputInhibited
(&InputInhib);
if (InputInhib ==
OHIO_INPUTINHIBITED_COMMCHECK)
{
pIOhioOIA->get_CommCheckCode
(&lChkCode);
. . .
}
Related Topics
OHIO_INPUTINHIBITED Data Type
Property: IOhioOIA::InsertMode
This property indicates if the session is in Insert mode.
Basic Syntax Boolean = OhioOIA.InsertMode
Property: IOhioOIA::MachineCheckCode
This property returns the machine check code if the InputInhibited property returns
OHIO_INPUTINHIBITED_MACHINECHECK.
Basic Long = OhioOIA.MachineCheckCode
Syntax
Related Topics
OHIO_INPUTINHIBITED Data Type
Property: IOhioOIA::Numeric
This property indicates whether the field that contains the cursor is a numeric-only field.
Basic Syntax Boolean = OhioOIA.Numeric
Property: IOhioOIA::Owner
This property specifies the owner of the host connection.
Basic Syntax OHIO_OWNER = OhioOIA.Owner
C++ Syntax HRESULT IOhioOIA::get_Owner([out,
retval] OHIO_OWNER * pVal);
Parameters pVal—The returned owner of the host
connection.
Basic Dim OIA As OhioOIA
Example Dim Owner As OHIO_OWNER
. . .
Owner = OIA.Owner
If (Owner = OHIO_OWNER_UNKNOWN) Then
‘Add code
Else
‘Add code
End If
C++ Example IOhioOIA* pIOhioOIA;
OHIO_OWNER OwnerOIA;
. . .
HRESULT hr = pIOhioOIA->get_Owner
(&OwnerOIA);
if (FAILED(hr)) {…} //error
if (OwnerOIA==OHIO_OWNER_UNKNOWN)
//Add code
Related Topics
OHIO_OWNER Data Type
Property: IOhioOIA::ProgCheckCode
This property returns the program check code if the InputInhibited property returns
OHIO_INPUTINHIBITED_PROGCHECK.
Basic Syntax Long = OhioOIA.ProgCheckCode
Related Topics
OHIO_INPUTINHIBITED Data Type
OhioFields Interface
The OhioFields interface contains a collection of the fields in the virtual screen. Each element of
the collection is an instance of OhioField. Through this interface, you can iterate through the
fields and find fields based on location and string.
You can access the OhioFields interface only through the OhioScreen interface using the Fields
property.
Note: OhioFields is a static view of the virtual screen. It does not reflect your changes
until you update the field list with a new view of the virtual screen using the Refresh
method.
The OhioFields interface returns the number of fields in the screen.
Methods
The OhioFields interface consists of the following methods:
FindByPosition
FindByString
Refresh
Properties
The OhioFields interface consists of the following properties:
Count
Item
Method: IOhioFields::FindByPosition
This method searches the collection for the requested position and returns the OhioField object
containing that position. If the position is not found, the method returns a null.
Basic OhioFields.FindByPosition(inPosition As
Syntax IOhioPosition) As OhioField
Method: IOhioFields::FindByString
This method searches the collection for the requested string and returns the OhioField object
containing that string. To be considered a match, the string must be contained completely within
the field. If the string is not found, the method returns a null.
You can also specify case-sensitivity and whether the search is performed backward or forward.
Basic OhioFields.FindByString(inString As
Syntax String, inStart As IOhioPosition, inLen As
Long, inIgnoreCase As Boolean) As
OhioField
C++ Syntax HRESULT IOhioFields::FindByString([in]
BSTR inString, [in] IOhioPosition *
inStart, [in] long inLen,
[in]OHIO_DIRECTION inDir, [in]
VARIANT_BOOL inIgnoreCase, [out, retval]
IOhioField * * outField
Parameters inString—The target string.
Property: IOhioFields::Count
This property returns the number of OhioField objects contained in the OhioFields collection.
Basic Syntax Long = OhioFields.Count
Property: IOhioFields::Item
This property returns the OhioField object at the specified index (one-based indexing).
Basic Syntax Long = OhioFields.Item
OhioFields.Item = Long
C++ Syntax HRESULT IOhioFields::get_Item([in]
long inIndexOrKey, [out, retval]
IOhioField * * pVal);
Parameters inIndexOrKey—The index of the returned
IOhioField object.
OhioField Interface
The OhioField interface is a virtual-screen field that includes both data and attributes describing
the field. The interface provides methods for accessing and manipulating field attributes and
data.
Note: For VT terminals, the interface returns the entire screen because the VT
terminal does not have fields.
You can access OhioField methods and properties only through the OhioFields interface.
Methods
The OhioField interface consists of the following method:
GetData
Properties
The OhioField interface consists of the following properties:
Attribute
End
HighIntensity
Length
Modified
Normal
Numeric
PenSelectable
Protected
Start
String
Method: IOhioField::GetData
This method lets you request different types of data, such as text, color, and field.
Basic Syntax OhioField.GetData(inPlane As
OHIO_PLANE) As Variant
C++ Syntax HRESULT IOhioField::GetData([in]
OHIO_PLANE inPlane, [out, retval]
VARIANT * outData);
Parameters inPlane—The type of plane.
Related Topics
OHIO_PLANE Data Type
Property: IOhioField::Attribute
This property returns the attribute byte for the field.
Basic Syntax OHIO_FIELD = OhioField.Attribute
if (lResult ==
OHIO_FIELD_PEN_SELECTABLE)
//Attribute enabled
else
//Attribute not enabled
Property: IOhioField::End
This property returns the ending position of the field, which is the last character in the field. The
position can range from 1 to the size of the virtual screen.
Basic Syntax OhioPosition = OhioField.End
Property: IOhioField::HighIntensity
This property indicates whether the field is high-intensity.
Basic Boolean = OhioField.HighIntensity
Syntax
C++ Syntax HRESULT
IOhioField::get_HighIntensity([out,
retval] VARIANT_BOOL * pVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that the field is high-intensity. A returned
value of VARIANT_FALSE indicates that the field is
not high-intensity.
Basic Dim OField As OhioField
Example Dim bHighIntensity As Boolean
. . .
bHighIntensity = OField.HighIntensity
If (bHighIntensity = True) Then
‘field is high-intensity
Else
‘field is not high-intensity
End If
C++ IOhioField* pIOhioField;
Example VARIANT_BOOL bHighIntensity;
. . .
HRESULT hr=pIOhioField-
>get_HighIntensity
(&bHighIntensity);
if (FAILED(hr)) {…} //error
if (bHighIntensity)
//field is high-intensity
else
//field is not high-intensity
Property: IOhioField::Length
This property returns the length of the field. The length of a field can range from 1 to the size of
the virtual screen.
Basic Syntax Long = OhioField.Length
Property: IOhioField::Modified
This property indicates whether the field has been modified.
Basic Syntax Boolean = OhioField.Modified
Property: IOhioField::Normal
This property indicates whether the field is normal (that is, not protected and not high-intensity).
Basic Syntax Boolean = OhioField.Normal
Property: IOhioField::Numeric
This property indicates whether the field is numeric-only.
Basic Syntax Boolean = OhioField.Numeric
Property: IOhioField::PenSelectable
This property indicates whether the field is pen-selectable.
Basic Boolean = OhioField.PenSelectable
Syntax
Property: IOhioField::Protected
This property indicates whether the field is protected.
Basic Syntax Boolean = OhioField.Protected
Property: IOhioField::Start
This property returns the starting position of the field, which is the first character of the field. The
position can range from 1 to the size of the virtual screen.
Basic Syntax OhioPosition = OhioField.Start
Property: IOhioField::String
This property returns or sets the text-plane data for the field as a string. If you set the property
with a value shorter than the field, the system clears the rest of the field. If you set the property
with a value longer than the field, the text is shortened. To view the changed text, you need to
refresh the OhioFields collection.
Basic Syntax String = OhioField.String
OhioField.String = String
HRESULT OhioField.put_String([in]
BSTR newVal);
Parameters pVal—The returned text-plane data for the field.
//put string
VARIANT_BOOL bProtected;
hr = pIOhioField->get_Protected
(&bProtected);
if (FAILED(hr)) {…} //error
if (bProtected)
//Add code
else
{
BSTR inBstr;
inBstr=SysAllocString(OLESTR
("sample text"));
hr = pIOhioField->put_String(inBstr);
if (FAILED(hr)) {…} //error
SysFreeString(inBstr);
}
OhioPosition Interface
The OhioPosition interface provides the row and column coordinates of the cursor position. You
can create an OhioPosition by using the CreateOhioPosition method.
The interface is used by the following sub-interfaces:
• OhioScreen
• OhioFields
• OhioField
Methods
The OhioPosition interface consists of the following method:
CreateOhioPosition
Properties
The OhioPosition interface consists of the following properties:
Column
Row
Method: IOhioPosition::CreateOhioPosition
This method allows you to create an OhioPosition object that can be passed to all interfaces.
The object consists of a row and column coordinate.
Basic OhioPosition.CreateOhioPosition(inRow
Syntax As Long, inCol As Long) As OhioPosition
Property: IOhioPosition::Column
This property returns or sets the column coordinate of the OhioPosition object.
Basic Syntax Long = OhioPosition.Column
OhioPosition.Column = Long
HRESULT
IOhioPosition::put_Column([in] long
newVal);
Parameters pVal—The returned column coordinate.
Property: IOhioPosition::Row
This property returns or sets the row coordinate of the OhioPosition object.
Basic Syntax Long = OhioPosition.Row
OhioPosition.Row = Long
HRESULT IOhioPosition::put_Row([in]
long newVal);
Parameters pVal—The returned row coordinate.
OhioSession interface
OHIO_STATE
OHIO_TYPE
OhioScreen interface
OHIO_COLOR
OHIO_EXTENDED
OHIO_FIELD
OHIO_PLANE
OHIO_UPDATE
OhioOIA interface
OHIO_INPUTINHIBITED
OHIO_OWNER
Related Topics
Method: IOhioField::GetData
Method: IOhioScreen::GetData
Related Topics
Method: IOhioFields::FindByString
Method: IOhioScreen::FindString
Related Topics
Method: IOhioField::GetData
Method: IOhioScreen::GetData
Related Topics
Method: IOhioField::GetData
Method: IOhioScreen::GetData
Related Topics
Method: IOhioField::GetData
Method: IOhioScreen::GetData
Related Topics
Method: IOhioScreen::GetData
Related Topics
Property: IOhioOIA::InputInhibited
Related Topics
Property: IOhioOIA::Owner
Related Topics
Method: IOhioField::GetData
Method: IOhioScreen::GetData
Related Topics
Property: IOhioSession::SessionType
Related Topics
Method: IOhioScreen::OnScreenChanged
About the Transport Objects
The Transport objects are tools for communication exchange and negotiation between your terminal and the host. The Transport objects receive and send data in
EBCDIC format (for TN3270 and TN5250 terminals) or ASCII format (for TNVT terminals) from the host. This data is eventually displayed on the terminal.
The Transport objects are:
• HETP3270—A TN3270 terminal emulator that connects to an IBM mainframe.
• HETP5250—A TN5250 terminal emulator that connects to an AS/400 mainframe.
• HETPVT—A TNVT terminal emulator that connects to a UNIX or DEC machine.
• HETPSNA—An SNA terminal emulator that connects to a local server (Microsoft SNA), which connects you to the host.
• HETPSAA—An SAA terminal emulator that connects to a local server (Novell Netware), which connects you to the host.
• HETAPI—A telephone dial-up emulator that connects to a server.
For properties and/or data types specific to:
• only the HETP3270 object
• only the HETP5250 object
• only the HETPVT object
• both the HETP3270 and the VT objects
There are also methods and properties common to the HETP3270, HETP5250, and HETPVT objects
Related Topics
Methods of the Transport Objects
Properties of the Transport Objects
Data Types of the Transport Objects
Properties of the HETP3270 Object
The following properties are specific to the HETP3270 object:
EnableEMode
TNESession
Data Types
HOSTEX_LINEMODE
HOSTEX_TELNETECHO
Data Types
HOSTEX_ATN_FORMAT
HOSTEX_CON_STATUS
HOSTEX_DEVICE_TYPE
HOSTEX_FUNCTION_KEY
HOSTEX_TERM_MODEL
HOSTEX_TOGGLE_RECEIVE
Related Topics
Properties of the Transport Objects
Data Types of the Transport Objects
Method: IHETransport::GetStatusString
Method: IHETransport::NegotiateNAWS
This method renegotiates the window size using specified row and column values (if they are different from the current values).
Basic Syntax HETransport.NegotiateNAWS(iRows As
Integer, iCols As Integer)
C++ Syntax HRESULT IHETransport::NegotiateNAWS(
[in] int iRows, [in] int iCols);
Parameters iRows—The number of rows you want in the
window.
Method: IHETransport::SendData
C++ HRESULT
Syntax IHETransport::SendFunctionKey(HOSTEX_FUNCTION_KEY IKey);
Transport.SendFunctionKey(HOSTEX_FUNCTION_KEY_SYSTEM_REQUEST)
Related Topics
HOSTEX_FUNCTION_KEY Data Type
Method: IHETransport::SendKeepAlive
A repeated message that is sent to the host, indicating that you are still connected.
Basic Syntax HETransport.SendKeepAlive
Method: IHETransport::SetHostPrintTransformInfo
This method lets you specify the information required to negotiate the Host Print transform with an AS/400 Telnet server.
Basic HETransport.SetHostPrintTransformInfo(bHostPrintTransform
Syntax As Boolean, PrinterModel As String, Drawer1 As Byte,
Drawer2 As Byte, EnvelopeHopper As Byte, bASCII899 As
Boolean, CustomizingObject As String, CustomizingLibrary
As String)
C++ HRESULT IHETransport::SetHostPrintTransformInfo([in]
Syntax VARIANT_BOOL bHostPrintTransform, [in] BSTR PrinterModel,
[in] unsigned char Drawer1, [in] unsigned char Drawer2,
[in] unsigned char EnvelopeHopper, [in] VARIANT_BOOL
bASCII899, [in] BSTR CustomizingObject, [in] BSTR
CustomizingLibrary);
Parameters bHostPrintTransform—The value that specifies
whether HostExplorer does the transform. If
bHostPrintTransform equals VARIANT_TRUE,
HostExplorer does the transform. If
bHostPrintTransform equals VARIANT_FALSE,
HostExplorer does not do the transform.
None FF
MFRTYPMDL 00
Letter 01
Legal 02
Executive 03
A4 04
A5 05
B5 06
CONT80 07
CONT132 08
A3 0E
B4 0F
Ledger 10
Related Topics
Method: IHETransport::SetHostPrintTransformInfo
Hexadecimal Values for Envelope Types
The following table lists the hexadecimal values to use to specify envelope types in the SetHostPrintTransformInfo method.
Envelope Type Hexadecimal Value
None FF
MFRTYPMDL 00
B5 06
Monarch 09
Number 9 0A
Number 10 0B
C5 0C
DL 0D
Related Topics
Method: IHETransport::SetHostPrintTransformInfo
Method: IHETransport::SetKerberosInfo
This method lets you specify your Kerberos information, including the version of Kerberos you want to use and your authentication name(s).
Basic HETransport.SetKerberosInfo(Version As
Syntax Integer, AltUserName As String,
UserName As String)
C++ Syntax HRESULT
IHETransport::SetKerberosInfo([in]
short Version, [in] BSTR AltUserName,
[in] BSTR UserName);
Parameters Version—The Kerberos version to use for the
current session. By default, this property is set to 4.
Method: IHETransport::ToggleBlockReceive
This method toggles the blocking of the receipt of data from the Transport objects.
Basic HETransport.ToggleBlockReceive(ToggleMode As
Syntax HOSTEX_TOGGLE_RECEIVE) As Boolean
if (bHoldState == VARIANT_TRUE)
//Add code
else
//Add code
AttentionFormat ModelRows
CharSet NumberOfRetries
CodePage Password
Connected PerformingTransfer
ConnectionStatus Port
LUNameRequested PortList
DeviceType RetryDelayTimeBetweenHosts
EnableEMode SecurityOption
EnableSSH SessionKeepAlive
EnableTracing TelnetEcho
HostAddress TelnetIsLineMode
HostName TelnetIsLocalEcho
IsEncrypted TelnetName
IsReceiveBlocked TerminalModel
Keyboard TerminalOnline
LineMode TerminalType
MaxBlockSize TNESession
MessageQueueLibrary TraceFilename
MessageQueueName Username
ModelColumns
Related Topics
Methods of the Transport Objects
Data Types of the Transport Objects
Property: IHETransport::AttentionFormat
This property returns or sets a value that enables compatibility with other servers or gateways. By default, this property is set to
HOSTEX_ATN_FORMAT_ATTACHMATE.
Basic HOSTEX_ATN_FORMAT =
Syntax HETransport.AttentionFormat
HETransport.AttentionFormat =
HOSTEX_ATN_FORMAT
C++ HRESULT
Syntax IHETransport::get_AttentionFormat([out,
retval] HOSTEX_ATN_FORMAT *pVal);
HRESULT IHETransport::put_AttentionFormat([in]
HOSTEX_ATN_FORMAT newVal);
Parameters pVal—The returned value, which enables
compatibility with other application formats.
Related Topics
HOSTEX_ATN_FORMAT Data Type
Property: IHETransport::CharSet
This property returns or sets character-set information to the host.
Basic Syntax String = HETransport.CharSet
HETransport.CharSet = String
SysFreeString(bstrCharSet);
Related Topics
TN5250 Language-Conversion Table
Property: IHETransport::CodePage
This property returns or sets a string that specifies what code page to use.
Basic Syntax String = HETransport.CodePage
HETransport.CodePage = String
HRESULT
IHETransport::put_CodePage([in] BSTR
newVal);
Parameters pVal—The returned string, specifying the code
page.
SysFreeString(bstrCodePage);
Related Topics
TN5250 Language-Conversion Table
Property: IHETransport::Connected
This property returns or sets a value that indicates whether you are connected to the host.
Basic Syntax Boolean = HETransport.Connected
HETransport.Connected = Boolean
HRESULT
IHETransport::put_Connected([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE
indicates that you want to connect to the host. A
returned value of VARIANT_FALSE indicates that
you want to disconnect from the host.
Property: IHETransport::ConnectionStatus
This property returns a value that indicates the status of the connection to the host.
Basic HOSTEX_CON_STATUS =
Syntax HETransport.ConnectionStatus
C++ HRESULT
Syntax IHETransport::get_ConnectionStatus([out,
retval] HOSTEX_CON_STATUS *pVal);
Parameters pVal—The returned value, indicating the connection
status to the host.
Basic Dim Transport As HETransport
Example Dim ConnectStatus As HOSTEX_CON_STATUS
Set Transport =
CreateObject("HETransport.HETransport")
ConnectStatus = Transport.ConnectionStatus
C++ Example IHETransport *m_pTransport = NULL;
HRESULT hr = CoCreateInstance(CLSID_HETransport, NULL, CLSCTX_INPROC_SERVER, IID_IHETransport, (LPVOID
*)&m_pTransport);
if (FAILED(hr))
{
// add code
return S_FALSE;
}
HOSTEX_CON_STATUS ConStat;
m_pHETransport->get_ConnectionStatus(&ConStat);
Related Topics
HOSTEX_CON_STATUS Data Type
Property: IHETransport::LUNameRequested
This property returns or sets a value indicating whether you want to connect to a default or specific device name.
Basic String = HETransport.LUNameRequested
Syntax
HETransport.LUNameRequested = String
C++ HRESULT
Syntax IHETransport::get_LUNameRequested([out,
retval] BSTR *pVal);
HRESULT IHETransport::put_LUNameRequested([in]
BSTR newVal);
Parameters pVal—The returned value, indicating whether you
want to connect to a default or specific device name.
Property: IHETransport::DeviceType
This property returns or sets a value that specifies whether the device type to be used with the Transport objects is a printer or display device.
Basic HOSTEX_DEVICE_TYPE = HETransport.DeviceType
Syntax
HETransport.DeviceType = HOSTEX_DEVICE_TYPE
C++ HRESULT IHETransport::get_DeviceType([out,
Syntax retval] HOSTEX_DEVICE_TYPE *pVal);
HRESULT IHETransport::put_DeviceType([in]
HOSTEX_DEVICE_TYPE newVal);
Parameters pVal—The returned value, indicating the device type
to be used.
Related Topics
HOSTEX_DEVICE_TYPE Data Type
Property: IHETransport::EnableEMode
This property returns or sets a value that enables the features for the TN3270E (Enhanced) terminal. By default, this property is set to VARIANT_TRUE.
Basic Syntax Boolean = HETransport.EnableEMode
HETransport.EnableEMode = Boolean
HRESULT IHETransport::put_EnableEMode
([in] VARIANT_BOOL newVal);
Parameters pVal—The returned value, which enables the
features for the TN3270E terminal.
//get mode
vbEmode = m_pTransport->get_EnableEMode();
//set mode
m_pTransport->put_EnableEMode(VARIANT_TRUE);
Property: IHETransport::EnableSSH
This property returns or sets a value that indicates whether HostExplorer uses SSH (Secure Shell) encryption between the server and client.
Basic Syntax Boolean = HETransport.EnableSSH
HETransport.EnableSSH = Boolean
HRESULT
IHETransport::put_EnableSSH([in]
VARIANT_BOOL newVal);
Parameters pVal—The returned value. If pVal equals
VARIANT_TRUE, HostExplorer uses SSH
encryption. If pVal equals VARIANT_FALSE,
HostExplorer does not use SSH.
// Disable SSH
bSSH = VARIANT_FALSE;
m_pTransport->put_EnableSSH(bSSH);
Property: IHETransport::EnableTracing
This property returns or sets a value that specifies whether you want to enable tracing. Tracing is the process of writing the information that is sent to and received
from the host into a file. By default, this property is set to VARIANT_FALSE.
Basic Boolean = HETransport.EnableTracing
Syntax
HETransport.EnableTracing = Boolean
HRESULT IHETransport::put_EnableTracing([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE enables
tracing. A returned value of VARIANT_FALSE
disables tracing.
Property: IHETransport::HostAddress
This property returns a string that specifies the address of the host to which you are currently connected.
Basic String = HETransport.HostAddress
Syntax
Related Topics
Property: IHETransport::HostName
Property: IHETransport::HostName
This property returns or sets a string that specifies the name of the host to which you are trying to connect.
Basic Syntax String = HETransport.HostName
HETransport.HostName = String
SysFreeString(bstrHost);
Property: IHETransport::IsEncrypted
This property returns the level of encryption of the message that is sent from the terminal to the host.
Basic HOSTEX_ENCRYPTED = HETransport.IsEncrypted
Syntax
Set Transport =
CreateObject("HETPVT.HETransportVT")
EncryptedStatus = Transport.IsEncrypted
C++ Example IHETransport *m_pTransport = NULL;
HRESULT hr = CoCreateInstance(CLSID_HETransport, NULL, CLSCTX_INPROC_SERVER, IID_IHETransport, (LPVOID
*)&m_pTransport);
if (FAILED(hr))
{
// add code
return S_FALSE;
}
HOSTEX_ENCRYPTED EncryptedStatus;
m_pTransport->get_IsEncrypted(&EncryptedStatus);
switch(EncryptedStatus)
{
//add code
}
Property: IHETransport::IsReceiveBlocked
This property returns the state of whether the receive is blocked.
Basic Boolean = HETransport.IsReceiveBlocked
Syntax
Related Topics
HOSTEX_TOGGLE_RECEIVE Data Type
Property: IHETransport::Keyboard
This property returns or sets a value that specifies the type of keyboard being used.
Basic Syntax String = HETransport.Keyboard
HETransport.Keyboard = String
C++ Syntax HRESULT
IHETransport::get_Keyboard([out,
retval] BSTR *pVal);
HRESULT
IHETransport::put_Keyboard([in] BSTR
newVal);
Parameters pVal—The returned value, specifying the keyboard
type.
// get keyboard
m_pTransport->get_Keyboard(&bstrKeyboard);
//set keyboard
bstrKeyboard = SysAllocString(OLESTR("ValidValue”));
m_pTransport->put_ Keyboard(bstrKeyboard);
SysFreeString(bstrKeyboard);
Property: IHETransport::MaxBlockSize
This property returns or sets the maximum Winsock receive block size.
Basic Long = HETransport.MaxBlockSize
Syntax
HETransport.MaxBlockSize = Long
HRESULT IHETransport::put_MaxBlockSize([in]
long newVal);
Parameters pVal—The returned value, indicating the maximum
Winsock receive block size.
Set Transport =
CreateObject("HETransport.HETransport")
BlockSize = 0
BlockSize = Transport.MaxBlockSize
C++ Example IHETransport *pTransport;
long BlockSize = 0;
if (SUCCEEDED(hr))
{
pTransport->get_MaxBlockSize(&BlockSize);
}
Property: IHETransport::MessageQueueLibrary
This property returns or sets a value that specifies the library containing the queue object that directs the print output.
Basic String = HETransport.MessageQueueLibrary
Syntax
HETransport.MessageQueueLibrary = String
HRESULT IHETransport::put_MessageQueueLibrary([in]
BSTR newVal);
Parameters pVal—The returned value, indicating the library that
contains the queue object.
SysFreeString(bstrLibrary);
Property: IHETransport::MessageQueueName
This property returns or sets a value that specifies the queue object that directs the print output.
Basic String = HETransport.MessageQueueName
Syntax
HETransport.MessageQueueName = String
C++ HRESULT IHETransport::get_MessageQueueName([out,
Syntax retval] BSTR *pVal);
HRESULT IHETransport::put_MessageQueueName([in]
BSTR newVal);
Parameters pVal—The returned value, indicating the queue
object.
SysFreeString(bstrName);
Property: IHETransport::ModelColumns
This property returns or sets the number of columns required for the terminal. By default, this property is set to 80 columns.
Basic Integer = HETransport.ModelColumns
Syntax
HETransport.ModelColumns = Integer
HRESULT IHETransport::put_ModelColumns([in]
short newVal);
Parameters pVal—The returned number of columns required for
the terminal.
Property: IHETransport::ModelRows
This property returns or sets the number of rows required for the terminal. By default, this property is set to 24 rows.
Basic Syntax Integer = HETransport.ModelRows
HETransport.ModelRows = Integer
HRESULT
IHETransport::put_ModelRows([in] short
newVal);
Parameters pVal—The returned number of rows required for
the terminal.
Property: IHETransport::NumberOfRetries
This property returns or sets the number of additional times that the session tries to connect to the host (if the first attempt fails).
Basic Integer = HETransport.NumberOfRetries
Syntax
HETransport.NumberOfRetries = Integer
C++ HRESULT
Syntax IHETransport::get_NumberOfRetries([out,
retval] short *pVal);
HRESULT IHETransport::put_NumberOfRetries([in]
short newVal);
Parameters pVal—The returned number of retries. If pVal equals -
1, the number of retries is infinite.
Related Topics
Property: IHETransport::RetryDelayTimeBetweenHosts
Property: IHETransport::Password
This property returns or sets a string that specifies the password used to connect to the host.
Basic Syntax String = HETransport.Password
HETransport.Password = String
//get password
m_pTransport->get_Password(&bstrPassW);
//set password
bstrPassW = SysAllocString(OLESTR("ValidValue”));
m_pTransport->put_Password(bstrPassW);
SysFreeString(bstrPassW);
Property: IHETransport::PerformingTransfer
This property returns or sets a value that indicates whether the Transport object is in file transfer mode.
Basic Boolean = HETransport.PerformingTransfer
Syntax
HETransport.PerformingTransfer = Boolean
HRESULT IHETransport::put_PerformingTransfer([in]
VARIANT_BOOL newVal);
Parameters pVal—A returned value of VARIANT_TRUE indicates
that the Transport object is in file transfer mode. A
returned value of VARIANT_FALSE indicates that the
Transport object is not in file transfer mode.
Property: IHETransport::Port
This property returns or sets a value that specifies the Internet port to which you are connected. You can select a number between 1 and 65534. By default, this
option is set to 23.
Basic Syntax Long = HETransport.Port
HETransport.Port = Long
HRESULT IHETransport::put_Port([in]
long newVal);
Parameters pVal—The returned value, specifying the Internet
port.
// get port
PortNum = m_pTransport->get_Port();
//set port
IHETransport *m_pTransport;
Long PortNum = 1;
m_pTransport->put_Port(PortNum);
Property: IHETransport::PortList
This property lets you specify a string that lists the port numbers you want to use. Use a semicolon (;) to separate succesive port numbers in the string.
Basic Syntax HETransport.PortList = String
Related Topics
Property: IHETransport::Port
Property: IHETransport::RetryDelayTimeBetweenHosts
This property returns or sets the number of seconds that the session waits before connecting to the next host.
Basic Integer = HETransport. RetryDelayTimeBetweenHosts
Syntax
HETransport.RetryDelayTimeBetweenHosts = Integer
C++ HRESULT
Syntax IHETransport::get_RetryDelayTimeBetweenHosts([out,
retval] short *pVal);
HRESULT
IHETransport::put_RetryDelayTimeBetweenHosts([in] short
newVal);
Parameters pVal—The returned value, specifying the number of
seconds that the session waits.
Related Topics
Property: IHETransport::NumberOfRetries
Property: IHETransport::SecurityOption
This property returns or sets a value that specifies the traffic for securing the channel between the server and the client. By default, this option is set to
HOSTEX_SECURITY_NO_SECURITY.
Basic HOSTEX_SECURITY_OPTIONS =
Syntax HETransport.SecurityOption
HETransport.SecurityOption =
HOSTEX_SECURITY_OPTIONS
C++ HRESULT IHETransport::get_SecurityOption([out,
Syntax retval] HOSTEX_SECURITY_OPTIONS *pVal);
HRESULT IHETransport::put_SecurityOption([in]
HOSTEX_SECURITY_OPTIONS newVal);
Parameters pVal—The returned value, specifying the security
option.
Set Transport =
CreateObject("HETransport.HETransport")
SecVal = HOSTEC_SECURITY_KERBEROS
Transport.SecurityOption = SecVal
C++ Example IHETransport *pTransport;
HOSTEX_SECURITY_OPTIONS SecurityOption;
SecurityOption = HOSTEX_SECURITY_KERBEROS
if (SUCCEEDED(hr))
{
pTransport->put_SecurityOption(&SecurityOption);
}
Related Topics
HOSTEX_SECURITY_OPTIONS Data Type
Property: IHETransport::SessionKeepAlive
This property returns or sets a value that indicates the time interval (in seconds) before the Transport object sends Keep Alive messages to the host. By default, this
property is set to 30 seconds.
Basic Long = HETransport.SessionKeepAlive
Syntax
HETransport.SessionKeepAlive = Long
C++ HRESULT IHETransport::get_SessionKeepAlive([out,
Syntax retval] long *pVal);
HRESULT IHETransport::put_SessionKeepAlive([in]
long newVal);
Parameters pVal—The returned value, indicating the time interval
before the Transport object sends Keep Alive
messages to the host.
Property: IHETransport::TelnetEcho
This property returns or sets a value that indicates how HostExplorer responds to remote echo negotiation with a Telnet host. By default, this property is set to
HOSTEX_TELNETECHO_AUTOMATIC.
Basic Syntax HOSTEX_TELNETECHO =
HETransport.TelnetEcho
HETransport.TelnetEcho =
HOSTEX_TELNETECHO
C++ Syntax HRESULT
IHETransport::get_TelnetEcho([out,
retval] HOSTEX_TELNETECHO *pVal);
HRESULT
IHETransport::put_TelnetEcho([in]
HOSTEX_TELNETECHO newVal);
Parameters pVal—The returned value, indicating how
HostExplorer responds to remote echo negotiation
with a Telnet host.
Related Topics
HOSTEX_TELNETECHO Data Type
Property: IHETransport::TelnetIsLineMode
This property returns a value that indicates whether HostExplorer stores characters in a buffer until you send a carriage return to the host. When enabled, Linemode
forces HostExplorer to send characters one line at a time rather than as individual characters.
Basic Boolean = HETransport.TelnetIsLineMode
Syntax
Property: IHETransport::TelnetIsLocalEcho
This property returns a value that indicates whether you are currently in local echo mode.
Basic Boolean = HETransport.TelnetIsLocalEcho
Syntax
Property: IHETransport::TelnetName
This property returns or sets a string that specifies a name to override the name used during Telnet negotiation with the host.
Basic Syntax String = HETransport.TelnetName
HETransport.TelnetName = String
HRESULT
IHETransport::put_TelnetName([in] BSTR
newVal);
Parameters pVal—The returned string, specifying a Telnet
name.
SysFreeString(bstrName);
Property: IHETransport::TerminalModel
This property returns or sets a value that indicates the type of terminal that you are using to connect to the host. For TN3270 and TN5250 terminals, the default for
this property is set to HOSTEX_TERM_MODEL_2. For TNVT terminals, the default is set to HOSTEX_TERM_MODEL_VT220.
Basic HOSTEX_TERM_MODEL = HETransport.TerminalModel
Syntax
HETransport.TerminalModel = HOSTEX_TERM_MODEL
HRESULT IHETransport::put_TerminalModel([in]
HOSTEX_TERM_MODEL newVal);
Parameters pVal—The returned value, indicating the terminal
type.
Related Topics
HOSTEX_TERM_MODEL Data Type
Property: IHETransport::TerminalOnline
This property returns or sets a value that specifies whether the VT terminal is online.
Basic Boolean = HETransport.TerminalOnline
Syntax
HETransport.TerminalOnline = Boolean
Property: IHETransport::TerminalType
This property lets you specify the terminal type you want to use (one of 3270, 5250, or VT).
Basic HETransport.TerminalType = Integer
Syntax
Related Topics
Property: IHETransport::TerminalModel
Property: IHETransport::TNESession
This property returns or sets a value that indicates whether the terminal is in TN3270E mode.
Basic Syntax Boolean = HETransport.TNESession
This property returns or sets a string that specifies the name of the file that contains the information that is sent to and received from the host. By default, this
property is set to C:\HETRACE.TRC.
Basic String = HETransport.TraceFilename
Syntax
HETransport.TraceFilename = String
HRESULT IHETransport::put_TraceFilename([in]
BSTR newVal);
Parameters pVal—The returned string, specifying the file name.
SysFreeString(bstrFile);
Property: IHETransport::Username
This property sets a string that specifies the user name that you use to connect to the host.
Basic Syntax HETransport.Username = String
SysFreeString(bstrName);
Property: IHETransport::LineMode
This property returns or sets a value that indicates whether or not you are currently in Linemode. By default, this property is set to
HOSTEX_LINEMODE_DONTDOLINEMODE.
Basic Syntax HOSTEX_LINEMODE = HETransport.LineMode
HETransport.LineMode = HOSTEX_LINEMODE
HRESULT
IHETransport::put_LineMode([in]
HOSTEX_LINEMODE newVal);
Parameters pVal—A returned value of TRUE indicates that you
are currently in Linemode. A returned value of
FALSE indicates you are not currently in Linemode.
Related Topics
HOSTEX_LINEMODE Data Type
Related Topics
Methods of the Transport Objects
Properties of the Transport Objects
Introducing FTP API
The FTP API is a non-OLE interface that lets you build Hummingbird Basic scripts to perform
local and remote disk and directory operations. The FTP API functions correspond to
functionality in the 5.3 and earlier versions of FTP. For information on the 6.0 version of FTP
API, see Introducing FTP OLE API. If you require more information on the function of a specific
FTP API scripting command, refer to the FTP online Help.
Note: You should also familiarize yourself with the following reference manuals for
HLLAPI from IBM:
• IBM 3270 Personal Computer High Level Language Application Programming Interface
• AIX Version 3.2 High Level Application Programming Interface (HLLAPI) Programming
FTP script requirements
When creating an FTP script, you must fulfill certain requirements:
• All of the FTP API functions are prototyped in the ftprtns.ebh header file. In order to
access the FTP API methods in Hummingbird DLL's, you must include the ftprtns.ebh
header file (.ebh) in your script file.
• All FTP scripts must begin with the InitFTP command and end with the DeinitFTP
command.
Handling FTP scripting errors
The GetErrorText command can be used to handle errors. All the error codes generated by
FTP API scripting commands are numbered between 3000 and 4000.
Account function
This function sends an FTP account command to the host. In order to transfer files, you must
supply the account command to some hosts.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call Account(BYVAL account$)
Parameters account—specifies the account string
you want to send to the host.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
AppendFile function
This function appends a single file from your PC to the host. To specify the destination as the
current directory on the host, type an empty string as the destination path.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call AppendFile( BYVAL sourcePath$,
BYVAL destPath$ )
Parameters sourcePath—specifies the full source path of the
PC file name you want to send to the remote host.
destPath—specifies the full destination path of
the host file name to which you want to append the
file.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
ASCIIType setting
This setting changes the current file transfer type to ASCII format. The default transfer type for
FTP scripts is AUTO.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call ASCIIType()
Parameters This method has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
BinaryType setting
This setting changes the current file transfer type to binary format. The default transfer type for
FTP scripts is AUTO.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call BinaryType()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
ChangeHostDir function
This function changes the current directory to the specified directory. You cannot leave the
argument empty.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call ChangeHostDir(BYVAL dirName$)
Parameters dirName—specifies the directory name or full
path to which to change the Host Directory.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
ConnectToHost function
This function connects to a remote host. You must supply the server port in order for this
command to make the connection. The host name can either be an IP address or a server
name specified in the host table.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call ConnectToHost(BYVAL host$, BYVAL serverPort
as portint)
Parameters host—specifies the remote host string name or IP address to
which you want to connect.
serverPort—specifies the port you want to use to make the
connection.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
CreateValidFATFiles setting
This function sets a flag which the FTP script uses during PC file creation to create valid FAT
file names. If the parameter is nonzero the flag is set, otherwise it is reset. By default this flag is
set and the FTP script creates valid FAT file names. The CreateValidFATFiles method
returns a nonzero value upon a successful setting, or zero to indicate an error.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC returnVal=CreateVAlidFATFiles(BYVAL
Syntax setVal as portint)
Parameters setVal—specifies an integer that turns valid file
creation on the PC on or off.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
CTRLZStatus setting
This function determines whether or not the CTRL-Z character is being inserted at the end of
ASCII files, when they are transferred from the PC to the server. A nonzero value indicates that
the FTP session will insert a CTRL-Z character at the end of transferred files. Otherwise, a
returned zero indicates that CTRL-Z is not inserted at the end of transferred files.
BASIC Syntax returnVal=CTRLZStatus()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
DeinitFTP function
This function de-initializes the environment of the FTP-specific environment variables, and must
be the last method executed in the Basic main method.
BASIC Syntax call DeinitFTP()
Parameters This function has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
DeleteHostFile function
This function deletes the specified file from the host. The argument may include any wildcard
characters supported by the host.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call DeleteHostFile(BYVAL
sourcePath$)
Parameters SourcePath—specifies the path of the file to
be deleted from the host.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
DelTree function
This function deletes an entire tree from the host. You cannot leave the argument empty.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call DelTree(BYVAL dirName$)
Parameters dirName—specifies the directory name
and its subdirectories that you will
delete
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
DisconnectFromHost function
This function disconnects the current connection. It generates an error if there are no
established connections. You can retrieve the text associated with the function using the error-
handling routine.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call DisconnectFromHost()
Parameters This function has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
FTPActive setting
This setting forces the FTP client session to establish the data connection actively. This makes
the server (host) passive. By default, FTP scripting sessions are active.
BASIC Syntax call FTPActive()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
FTPDIR function
This function gets the directory listing of the specified directory with or without options in the
argument. The returned text will include a full description of each file on the host. If required,
you can further process the returned text using the script.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax Text$ = FTPDIR(BYVAL
options$)
Parameters options—specifies the full path, or
options that may be supplied to the host
(this varies with each host ).
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
FTPPassive setting
This setting forces the FTP session to establish the data connection passively. This makes the
server (host) active and the FTP client passive. By default, FTP scripting sessions are active.
BASIC Syntax call FTPPassive()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
GetErrorText function
This function retrieves the error text associated with the last FTP subroutine or function call. The
FTP scripting engine generates the text.
BASIC Syntax Text$ = GetErrorText(BYVAL errorCode as
portint)
Parameters ErrorCode—specifies the trapped error code
generated as a result of the previous FTP functions or
subroutines.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
GetFile function
This function gets a single file from the host to the PC. To specify the destination as the current
directory on the PC, pass an empty string as the destination path. If the current host directory
does not include the source file, you should specify the full path. GetFile does not accept
wildcard specifications.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call GetFile(BYVAL sourcePath$, BYVAL
destPath$)
Parameters source path—specifies the full path to the file on
the host.
Destination path—specifies the full path to
where you want to put the file on the PC.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
GetLocalFilenamesStatus setting
This setting returns the current state of the flag which FTP scripting uses to transfer local files
with lowercase file names during a PUT operation. The function will either return a nonzero
value indicating that the flag is set, or a zero value to indicate that the flag is not set.
BASIC Syntax returnVal = GetLocalFilenamesStatus()
Parameters This setting has no parameters.
GetOutputText function
This function retrieves the replies made by the server with respect to any other FTP API
function.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax Text$ = GetOutputText
Parameters This function has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
The GetOutputText function is used to retrieve the replies made by the server to any used
subroutines or functions. It returns the string echoed by the server when a command is sent,
allowing you to see what the server has returned.
GetReplyTimeoutValue setting
This setting returns the current timeout value used by the FTP scripting tool. The value returned
represents how long the FTP scripting tool waits for a reply from the remote host after an FTP
command is sent. The GetReplyTimeoutValue function returns a long value indicating the
timeout.
BASIC Syntax ReturnVal = GetReplyTimeoutValue()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
GetTransferType setting
This function returns the current transfer type. One of the following values will be returned:
ASCII, BINARY or AUTO DETECT. In AUTO DETECT transfer type reverts to ASCII when
transferring text files, and to BINARY when transferring binary files (e.g. executables).
The default transfer type for FTP scripts is AUTO.
BASIC Syntax ReturnVal = GetTransferType()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
GetTree function
This function gets an entire tree from the host to the PC. To specify the current directory as the
destination on the PC, pass an empty string as the destination path. If the current host directory
does not include the source directory, you should specify the full path. GetTree does not
accept wildcard specifications.
BASIC Syntax call GetTree(BYVAL sourcePath$, BYVAL
destPath$)
Parameters SourcePath—specifies the full source path to be
received from the host.
destPath—specifies the full destination path on the PC.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
InitFTP function
This function initializes the environment for the FTP scripting functions. This function must be
called before you make any FTP scripting request. Otherwise, the scripting subroutines behave
abnormally. A nonzero integer return value specifies a successful initialization, otherwise a zero
value is returned.
BASIC Syntax ReturnVal = InitFTP()
Parameters This function has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
LocalDelTree function
This function deletes an entire tree from the local PC. The argument must not be empty.
LocalDelTree is a supplement to the current Hummingbird Scripting Language API. No
connection to any host is required, however, you must use the FTPInit and Deinit API.
Errors should be trapped by the provided error-handling function.
BASIC Syntax call LocalDelTree(BYVAL dirName$)
Parameters dirName—specifies the path of the tree to be
deleted from the PC.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
LS function
This function gets the directory listing of the specified directory, with or without options in the
argument. If required, you can process the returned text further using the script.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax Text$ = LS(BYVAL options$)
Parameters options—specifies the full path, or
options that may be supplied to the host
(this varies with each host ).
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
MakeHostDir function
This function makes a new directory on the host. The argument must not be empty.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call MakeHostDir(BYVAL dirName$)
Parameters dirName—specifies the new directory name or
full path.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
MGet function
This function gets multiple files from the host to the current PC directory.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call Mget(BYVAL pattern$)
Parameters pattern—specifies the pattern used
by the host to get all matching file. The
pattern may include wildcards native to
the host.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
MPut function
This function puts multiple files to the current directory on the host from the PC.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call Mput(BYVAL pattern$)
Parameters pattern—specifies the pattern used
by the PC to get all matching file. The
pattern may include wildcards native to
the local operating system.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
PrintWorkingDir function
This function acquires the full path of the current directory on the host. The returned string may
include FTP command codes, and can be processed further, if required.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax Text$ = PrintWorkingHostDir
Parameters This function has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
PutFile function
This function moves a single file from the PC to the host. To specify the destination as the
current directory on the host, pass an empty string as the destination path.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call PutFile(BYVAL sourcePath$, BYVAL
destPath$)
Parameters SourcePath—specifies the full source path of the PC
file name to be sent to the remote host.
destPath—specifies the full destination path of the
host file name.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
PutTree function
This function puts an entire tree from the PC to the host. To specify the destination as the
current directory on the host, pass an empty string as the destination path.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call PutTree(BYVAL sourcePath$,
BYVAL destPath$)
Parameters SourcePath—specifies the full source path of
the PC path to be sent to the remote host.
destPath—specifies the full destination path on
the host.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
QuoteCommand function
This function sends arbitrary FTP commands to the host. The returned string may include FTP
command codes, and, if required, can be processed further.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax Text$ = QuoteCommand( BYVAL
commandText$ )
Parameters CommandText—specifies the command text to be
sent to the host
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
RemoveHostDir function
This function removes the specified directory from the host. You cannot leave the argument
empty.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call RemoveHostDir(BYVAL dirName$)
Parameters dirName—specifies the directory name or full
path to be removed.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
RenameHostFile function
This function renames the specified file to a new name. The subroutine does not attempt to
rename files unless you specify both arguments.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call RenameHostFile(BYVAL sourcePath$, BYVAL
destPath$)
Parameters SourcePath—specifies the path of the file to be renamed.
destPath—specifies the path of the file with the new name.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
SessionType setting
This setting determines the active/passive status of the FTP client session. If the function
returns a nonzero value, then the FTP client session is active and the remote host (server) is
passive. Otherwise, a zero value indicates that the remote host (server) is active and the FTP
client session is passive.
BASIC Syntax ReturnVal=SessionType()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script.
SetReplyTimeoutValue setting
This setting sets how many seconds FTP scripting waits for a reply from the remote host after a
command is sent. If the parameter is a positive, nonzero, long integer, the timeout value will be
set. Otherwise, the function returns a zero, which indicates an error. By default the timeout
value is set to 120 (secs).
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax ReturnVal = SetReplyTimeoutValue(BYVAL value
as long)
Parameters value—specifies a long value to be set as the timeout.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script.
SetLocalFilenamesLowercase setting
This setting sets a flag that FTP scripting uses during a put operation in order to transfer local
files to the host with lowercase file names. If the parameter is nonzero, the flag sets. Otherwise,
it resets. By default this flag is set, and FTP scripting will transfer lowercase file names.
BASIC Syntax ReturnVal = SetTransferType(BYVAL transferType
as portint)
Parameters Transfertype—specifies an integer that turns lowercase
transfer on or off.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script.
SetTransferType setting
This setting sets the current transfer type to ASCII, BINARY or AUTO DETECT type. If the
function is successful, the previous transfer type is returned; otherwise, a negative value
returns. In AUTO DETECT, transfer type reverts to ASCII when transferring text files, and to
BINARY when transferring binary files (e.g. executables). The default transfer type for FTP
scripts is AUTO.
BASIC Syntax ReturnVal = SetTransferType(BYVAL transferType
as portint)
Parameters TransferType—specifies a valid integer value to be set as
transfer type.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script.
StripCtrlZ setting
This setting removes the CTRL-Z if it is at the end of ASCII files being transferred from the PC
to the server. This ensures that CTRL-Z does not exist in the server's file. When this flag is set,
hclftp.dll ignores the state of the WriteCtrlZ flag. By default, CTRL-Z is inserted at the end
of files.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call StripCtrlZ(BYVAL setVal as
portint)
Parameters setVal—specifies the Boolean variable used to
set or reset the option..
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
SystemType function
This function requests the host to specify the underlying operating system of the host. The
subroutine sends an FTP (SYST) command to the host. The server either returns an error
specifying that the command has not been implemented, or returns the text that includes the
server system type. This text can be retrieved with the GetOutputText function, and can be
processed further by the script.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call SystemType()
Parameters This function has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
UserLogin function
This function logs you on to the remote server. If your server requires a password or account,
you should type them as specified below; otherwise, leave these strings empty. This function
generates an error if there are no established connections.
Errors generated vary with each host, but the errors should be trapped by the provided error-
handling function.
BASIC Syntax call UserLogin(BYVAL userName$, BYVAL password$,
BYVAL account$)
Parameters userName—specifies the username that should be used to log on to
the remote host.
password—specifies the password to be used for login.
account—specifies the account to be used for login.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
ValidFATFileCreate setting
This setting returns the current state of the flag that FTP scripting uses during PC file creation to
create valid FAT file names. The function either returns a nonzero value indicating that the flag
is set, or a zero value indicating that the flag is not set
BASIC Syntax ReturnVal = ValidFATFileCreate()
Parameters This setting has no parameters.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script.
WriteCtrlZ setting
This setting controls whether or not a CTRL-Z end-of-file marker is inserted at the end of ASCII
files being transferred from the PC to the server. By default, CTRL-Z is inserted at the end of
files.
BASIC Syntax call WriteCtrlZ(BYVAL setVal as
portint)
Parameters setVal—specifies the Boolean variable used
to set or reset the option.
Note: This function is prototyped in the ftprtns.ebh header file. In order to access
the prototype for this API command, you must include this header file in your script
file.
Related Topics
Creating an OLE Script
Sample Client Source Code
FtpSession1.ServerName=ftp.com
5. Call session methods, such as Connect to Host, User Login, Get, and so on. For
example:
FtpSession1.UserLogin
Related Topics
Introducking FTP OLE API
Sample Client Source Code
IHclFtpEngine Object
The IHclFtpEngine object provides information on the current application such as its name,
parent and the state of the main window. Create the IHclFtpEngine object before you create any
other object.
The methods and properties of this object are for use with this object and for versions 6.0 or
later only.
Related Topics
IHclFtpEngine Object properties
IHclFtpEngine Object methods
IHclFtpEngine Object properties
The following are the Engine properties:
Application property
FullName property
Name property (IHclFtpEngine)
Parent property
Sessions property
Visible property
Related Topics
IHclFtpEngine Object method
IHclFtpEngine Object method
The following is the Engine method:
Quit method
Related Topics
IHclFtpEngine Object properties
IHclFtpSession Object
The IHclFtpSession object includes methods for executing a wide range of commands for
managing files, printing, and connecting to the host. The IHclFtpSession object properties
provide information on accounts, firewalls, servers, and passwords.
The methods and properties of this object are for use with this object and for version 6.0 or later
only.
Related Topics
IHclFtpSession Object methods
IHclFtpSession Object properties
IHclFtpSession Object properties
The following are the Session properties:
Account property Password property
Related Topics
IHclFtpSession Object methods
IHclFtpSession Object methods
The following are the Session methods:
AppendFile method MPut method
Related Topics
IHclFtpSession Object properties
IHclFtpSessions Object
The IHclFtpSessions object creates and manages IHclFtpSession objects (a collection of FTP
sessions). The IHclFtpSessions object includes methods for deleting the local tree, and creating
and removing sessions.
The methods and properties of this object are for use with this object and for version 6.0 or later
only.
Related Topics
IHclFtpSessions Object properties
IHclFtpSessions Object methods
IHclFtpSessions Object properties
The following are the Sessions properties:
Count property
EMailAddress property
LocalDefaultDirectory property
LocalFileNamesCase property
SessionByName property
SessionByNumber property
ValidLocalFileNames property
Related Topics
IHclFtpSessions Object methods
IHclFtpSessions Object methods
The following are the Sessions methods:
NewSession method
RemoveAllSessions method
RemoveSession method
RemoveSessionByName method
RemoveSessionByNumber method
Related Topics
IHclFtpSessions Object properties
FullName property
This property returns the full name of the application.
BASIC Syntax variable = FullName
Parameters This property has no parameters.
Parent property
This property returns the application object of IhclFtpEngine type.
BASIC Syntax variable = Parent
Parameters This property has no parameters.
Visible property
This property returns the state of the main window. If the window is visible, then the boolean is
TRUE; if the window is not visible, then the boolean is FALSE.
BASIC Syntax variable = Visible
Parameters This property has no parameters.
Sessions property
This is the most useful of the IHclFtpEngine properties. Returns an object of
IHclFtpSessions type. This is the collection of IHclFtpSession objects.
BASIC Syntax Sessions = variable
variable = Sessions
Parameters This property has no parameters.
Quit method
This method exits the application.
BASIC Syntax Quit
Parameters This method has no parameters.
ServerName property
This property returns the name of the FTP server to which the session is connected. The default
value is an empty string.
BASIC Syntax variable = ServerName
ServerName = variable
Parameters This property has no parameters.
UserName property
This property determines the login user name . The default value is an empty string.
BASIC Syntax variable = UserName
UserName = variable
Parameters This property has no parameters.
Password property
This property determines the password for login authentication . The default value is an empty
string.
BASIC Syntax variable = Password
Password = variable
Parameters This property has no parameters.
Account property
This property sends an FTP account command to the host. In order to transfer files, you must
supply the account command to some hosts. The default value is an empty string.
BASIC Syntax variable = Account
Account = variable
Parameters This property has no parameters.
InitialHostDirectory property
This property identifies the directory to which the initial host directory is changed after the
connection is made to the server at login. As soon as you log in, the host directory is changed
automatically.
BASIC Syntax variable = InitialHostDirectory
InitialHostDirectory = variable
Parameters This property has no parameters.
ServerPort property
This property identifies the port used for FTP connections. The default port is 21.
BASIC Syntax variable = ServerPort
ServerPort = variable
Parameters This property has no parameters.
ReplyTimeout property
This property identifies the amount of time in seconds the FTP engine waits to receive a reply to
the command sent to the FTP server before terminating. The default value is 120 seconds.
BASIC Syntax variable = ReplyTimeout
ReplyTimeout = variable
Parameters This property has no parameters.
TransferType property
This property identifies the transfer type. The default is AUTO_TRANSFER.
BASIC Syntax variable = TransferType
TransferType = variable
Parameters This property has no parameters.
PASVMode property
This property helps transfer data through any possible firewalls. The default value is TRUE.
BASIC Syntax variable = PASVMode
PASVMode = variable
Parameters This property has no parameters.
SSHMode property
Determines if the FTP communications and file transfers are encrypted. The default value is
FALSE.
BASIC Syntax SSHMode=variable
Variable=SSHMode
Parameters TRUE—The FTP client encrypts the data
connection.
FALSE—The server does not encrypt the
data connection.
Data Type Boolean
Connected property
This property determines if there is a connection. A TRUE value means there is a connection; a
FALSE value means there is no connection. The default value is FALSE.
BASIC Syntax variable = Connected
Parameters This property has no parameters.
WriteCtrlZ property
This property controls whether or not a CTRL-Z end-of-file marker is inserted at the end of
ASCII files being transferred from the PC to the server. A TRUE value indicates that the
character is inserted. A FALSE value indicates the character is not inserted. The default value is
FALSE.
BASIC Syntax variable = WriteCtrlZ
WriteCtrlZ = variable
Parameters This property has no parameters.
StripCtrlZ property
This property determines if CTRL-Z characters are stripped from the end of ASCII files
transferred from the PC to the server. If the property is set to TRUE, FTP ignores the WriteCtrlZ
value. The default value is FALSE.
BASIC Syntax variable = StripCtrlZ
StripCtrlZ = variable
Parameters This property has no parameters.
DropExtension property
This property determines if it is going to drop file extensions from file names transferred from
the PC to the server. The default value is FALSE. Use this property only with mainframes such
as IBM and TANDEM.
BASIC Syntax variable = DropExtension
DropExtension = variable
Parameters This property has no parameters.
DropVersion property
This property determines if FTPAPI is going to drop file version numbers from VMS file names
transferred to a PC. The default is FALSE.
BASIC Syntax Variable = DropVersion
DropVersion = variable
Parameters This property has no parameters.
TraceMode property
This property determines if the script is going to perform tracing of FTP protocol commands.
The default value is FALSE.
BASIC Syntax Variable = TraceMode
TraceMode = variable
Parameters This property has no parameters.
TraceFileName property
This property determines the trace file name used for tracing. The default value is an empty
string.
BASIC Syntax variable = TraceFileName
TraceFileName = variable
Parameters This property has no parameters.
UseFirewall property
This property determines if firewall support is needed, or if the script is going to use firewall
support. The default value is FALSE.
BASIC Syntax variable = UseFirewall
UseFirewall = variable
Parameters This property has no parameters.
Data Type Boolean
FirewallServerPort property
This property determines the server port used to connect to the firewall. The default port is 21.
BASIC Syntax variable = FirewallServerPort
FirewallServerPort = variable
Parameters This property has no parameters.
FirewallServerName property
This property determines the FTP firewall server to which the session is connected. The default
value is an empty string.
BASIC Syntax variable = FirewallServerName
FirewallServerName = variable
Parameters This property has no parameters.
FirewallUserName property
This property determines the user name used to authenticate the firewall login. The default
value is an empty string.
BASIC Syntax variable = FirewallUserName
FirewallUserName = variable
Parameters This property has no parameters.
FirewallPassword property
This property determines the string for firewall login authentication. The default value is an
empty string.
BASIC Syntax variable = FirewallPassword
FirewallPassword = variable
Parameters This property has no parameters.
FirewallType property
This property determines the firewall type. The default value is SITE_SERVERNAME.
BASIC Syntax variable = FirewallType
FirewallType = variable
Parameters This property has no parameters.
DefaultSystemType property
This property determines the default system type. The default value is UNIX. If FTP cannot
detect the system type, it will use the value you set as the system default.
BASIC Syntax variable = DefaultSystemType
DefaultSystemType = variable
Parameters This property has no parameters.
Data Type TDSystem
ForceDefaultSystemType property
This property forces the client to accept the default system type you define. The default value is
FALSE.
BASIC Syntax Variable =
ForceDefaultSystemType
ForceDefaultSystemType =
variable
Parameters This property has no parameters.
DelTree method
This method removes an entire local tree structure.
BASIC Syntax DelTree [directory path]
Parameters directory path—Specifies the path
of the directory tree you want to delete.
Return Value None
DeleteHostFile method
This method deletes a file on the host.
BASIC Syntax DeletHostFile[file path]
Parameters file path—Specifies the path of the
file you want to delete.
Return Value None
ChangeHostDir method
This method changes to another directory on the host.
BASIC Syntax ChangeHostDir [directory
path]
Parameters directory path—Specifies the path
of the directory to which you want to
change.
Return Value None
ServerBanner method
This method returns the server banner. The method returns an error when there is no
connection.
BASIC Syntax Variable = ServerBanner
Parameters This method has no parameters.
WorkingHostDirectory method
This method returns the path of the current working host directory.
BASIC Syntax Variable = WorkingHostDirectory
Parameters This method has no parameters.
ReplyText method
This method returns the server reply text for the last FTP command.
BASIC Syntax variable = ReplyText
Parameters This method has no parameters.
SystemType method
This method returns the name of the host operating system.
BASIC Syntax variable = SystemType
Parameters This method has no parameters.
RemoteHelp method
This method returns help text from the server.
BASIC Syntax variable = RemoteHelp
Parameters RemoteHelp—The parameters and
arguments to the help command which
you want to execute on the remote
system.
Return Value String
RemoveHostDir method
This method removes a directory from the host.
BASIC Syntax RemoveHostDir [directory
path]
Parameters directory path—Specifies the path
of the directory you want to delete.
Return Value None
RenameHostFile method
This method renames a file on the host.
BASIC Syntax RenameHostFile [source,
destination path]
Parameters source—The path to the file that is to
be renamed.
destination path—The path to
where the renamed file will be stored.
Return Value None
ConnectToHost method
This method connects to the host. It uses the values of the properties specified in the FTP Site
Properties dialog box of Humminbird FTP for Windows Explorer. For more information about
FTP for Windows Explorer, refer to the Hummingbird Neighborhood Help which is available
when you install Hummingbird Neighborhood..
BASIC Syntax Not applicable
Parameters This method has no parameters.
DisconnectFromHost method
This method disconnects from the host.
BASIC Syntax Not applicable
Parameters This method has no parameters.
UserLogin method
This method is used to log in to the remote server. If the server requires a password or account,
use the values for the UserName, Password, Account, and InitialHostDirectory properties to
authenticate login.
BASIC Syntax Not applicable
Parameters This method has no parameters.
NewUserLogin method
This method uses the parameters to authenticate another login with the new user name. All
required parameters must be included.
BASIC Syntax NewUserLogIn [username,
password, account, initialhost
directory]
Parameters username—Specifies the user name that
should be used to log in to the remote
host.
password—Specifies the password to
be used for login.
account—Specifies the account to be
used for login.
initialhost directory—Specifies
the directory to which the initial host
directory is changed after the connection
is made to the server at login.
Return Value None
SendAccountCommand method
This method sends the account information to the server.
BASIC Syntax SendAccountCommand [account
info]
Parameters account info—The account
information you want to send to the host.
Return Value None
LS method
This method returns the host directory listing with the specified options. The script can process
the returned text further, if required.
BASIC Syntax variable = LS [options]
Parameters options—Options are defined by the
FTP server and vary depending on the
server.
Return Value String
FTPDIR method
This method retrieves the directory listing of the specified directory, with or without options in
the argument. The returned text includes a full description for each file on the host. The script
can process the text further, if required.
BASIC Syntax variable = FTPDIR [options]
Parameters options—Options are defined by the
FTP server and vary depending on the
server.
Return Value String
GetFile method
This method retrieves a file from the host to the PC. If the destination path is empty, the script
sends the file to the current working directory.
BASIC Syntax GetFile [source path,
destination path]
Parameters source path—Specifies the full path to
the file on the host.
destination path—Specifies the full
path to where you want to put the file on
the PC.
Return Value None
GetTree method
This method retrieves an entire directory tree structure from the host to the PC. If the
destination is empty, the script uses the local default directory.
BASIC Syntax GetTree [source path, destination
path]
Parameters source path—Specifies the full path of the
directory tree on the host.
destination path—Specifies the full path
to where you want to put the directory tree on
the PC.
Return Value None
PutFile method
This method sends a single file from the PC to the host. If the destination path is empty, the
script sends the file to the current host working directory.
BASIC Syntax PutFile [source path, destination
path]
Parameters source path—Specifies the full source path
of the PC file name you want to send to the
remote host.
destination path—Specifies the full
destination path of the host file name.
Return Value None
PutTree method
This method sends an entire directory tree from the PC to the host. If the destination path is
empty, the script uses the local default directory.
BASIC Syntax PutTree [source, destination]
Parameters source—Specifies the full source path of
the PC file name you want to send to the
remote host.
destination—Specifies the full
destination path of the host file name.
Return Value None
QuoteCommand method
This method enables the user to send arbitrary protocol commands to the server.
BASIC Syntax variable = QuoteCommand [command
text]
Parameters command text—The protocol commands
you want to send to the server.
Return Value String
AppendFile method
This method appends a PC file to a host file. If the destination path is empty, the script sends
the file to the current host working directory.
BASIC Syntax AppendFile [source path,
destination path]
Parameters source path—Specifies the full source path
of the PC file that you want to append to the
remote host file.
destination path—Specifies the full
destination path of the host file to which you
want to append the PC file.
Return Value None
MGet method
This method retrieves multiple files from the host to the default local directory on the PC.
BASIC Syntax MGet [pattern]
Parameters pattern—Specifies the pattern used by
the host to get all matching file(s). The
pattern may include wildcards native to
the host.
Return Value None
MPut method
This method sends multiple files from the PC to the host working directory.
BASIC Syntax MPut [pattern]
Parameters pattern—Specifies the pattern used by
the PC to get all matching files. The
pattern may include wildcards native to
the PC.
Return Value None
HostToHostFileTransfer method
This method transfers a file from one session to another.
BASIC Syntax HostToHostFileTransfer [source path,
destination path, destination session
object]
Parameters source path—Specifies the full source path of the file
name you want to transfer to another session.
destination path—Specifies the full destination path
of the file name that you want to transfer.
destination session object—Specifies the
HclFtpSession object for the host containing the
destination.
Return Value None
HostToHostTreeTransfer method
This method transfers an entire directory tree to another session.
BASIC Syntax HostToHostTreeTransfer [source path,
destination path, destination session
object]
Parameters source path—Specifies the full source path of the tree
you want to transfer to another session.
destination path—Specifies the full destination path
of the tree that you want to transfer.
destination session object—Specifies the
HclFtpSession object for the host containing the
destination.
Return Value None
HostToHostMultipleFileTransfer method
This method transfers multiple files from one session to the other.
BASIC Syntax HostToHostMultipleFileTransfer [pattern, destination
session object]
Parameters pattern—Specifies the pattern used by the current host to get all
matching files. The pattern may be dependent on the server.
destination session object—Specifies the HclFtpSession object
that represents the destination host.
Return Value None
HostToHostFileAppend method
This method appends a session file to another session file.
BASIC Syntax HostToHostFileAppend [source, destination,
path, destination session object]
Parameters source—Specifies the full source path of the files you
want to append to another session file.
destination—Specifies the full destination path of the
file that you want to append.
destination session object—Specifies the
HclFtpSession object that represents the host where the
destination file exists.
Return Value None
ParentDir method
This method changes from the current directory to the nearest parent directory.
BASIC Syntax ParentDir
Parameters This method has no parameters.
MDelete method
This method deletes multiple files on the host.
BASIC Syntax MDelete [Pattern]
Parameters Pattern—Specifies the pattern used by
the host to get all matching file(s). The
pattern can include wildcards native to
the host.
Return Value None
PrintHostFile method
This method prints a host file.
BASIC Syntax PrintHostFile [file path]
Parameters file path—Specifies the full path of
the file you want to print.
Return Value None
MakeHostDir method
This method creates a host directory.
BASIC Syntax MakeHostDir [directory path]
Parameters directory path—Specifies the full
path of the directory you want to create.
Return Value None
Related Topics
TransferType property
TDSystem data type
Data Type Integer
Parameters This data type has no parameters.
Possible Values UNIX—UNIX System Type.
VMS_VAX—VAX VMX system type.
DOS—DOS system type.
OS_2—OS/2 System Type.
WIN_NT—Windows NT System Type.
MVS_SYS—MVS system type.
VM_CMS_SYS—VM/CMS system type.
VM_VPS_SYS—VM/VPS SYS system
type.
TANDEM
OS_9
OTHER
Related Topics
DefaultSystemType property
TFirewall data type
Data Type Integer
Parameters This data type has no parameters.
Related Topics
FirewallType property
TLocalCase data type
Data Type Integer
Parameters This data type has no parameters.
Possible Values SAME—Keeps original case.
LOWERCASE—Sets all characters in
the file name to lowercase.
UPPERCASE—Sets all characters in
the file name to uppercase.
Related Topics
LocalFileNamesCase property
EMailAddress property
This property sets or returns the e-mail address. This address is used as the password for all
sessoins using "anonymous" as the user name. It is also used for anonymous sessions. The
default value is an empty string.
BASIC Syntax EmailAddress = variable
variable = EmailAddress
Parameters This property has no parameters.
ValidLocalFileNames property
This property creates valid local file names when files are transferred from the host to the PC. If
the value is TRUE, the FTP engine creates the valid local file names. If the value is FALSE, the
FTP engine does not check for valid names. By default, the property is set to TRUE.
BASIC Syntax ValidLocalFileNames = variable
variable = ValidLocalFileNames
Parameters This property has no parameters.
LocalFileNamesCase property
This property defines the case of the PC file names sent to the host. The default is lowercase.
BASIC Syntax LocalFileNamesCase = variable
variable = LocalFileNamesCase
Parameters This property has no parameters.
LocalDefaultDirectory property
This property identifies and sets the local default directory for all sessions. If the file name or
directory name does not include the full path, the script automatically sends files to or retrieves
files from the default directory.
BASIC Syntax LocalDefaultDirectory = variable
variable = LocalDefaultDirectory
Parameters This property has no parameters.
SessionByNumber property
This property returns the session object identified by the index you provide.
BASIC Syntax SessionByNumber (ByVal index as
Long = variable
variable = SessionByNumber
(ByVal index As Long)
Parameters This property has no parameters.
SessionByName property
This property returns the session object identified by the name you provide.
BASIC Syntax SessionByName (By Val Name as String) =
variable
variable = SessionByName (ByVal name as
String)
Parameters This property has no parameters.
Data Type IHclFtpSession
NewSession method
This method creates a new FTP session with default properties.
BASIC Syntax variable = NewSession
Parameters This method has no parameters.
RemoveSession method
This method disconnects and removes a session identified by the IHclFtpSession object.
BASIC Syntax RemoveSession variable
Parameters IHclFtpSession object
RemoveSessionByNumber method
This method disconnects and removes a session identified by the index number.
BASIC Syntax RemoveSessionByNumber index
Parameters Long Integer
RemoveSessionByName method
This method disconnects and removes a session identified by the name.
BASIC Syntax RemoveSessionByName variable
Parameters String
RemoveAllSessions method
This method disconnects and removes all sessions.
BASIC Syntax variable = RemoveAllSessions
Parameters This method has no parameters.
LocalDelTree method
This method deletes the entire local directory tree identified by the parameter.
BASIC Syntax LocalDelTree variable
Parameters String
Application property
This property returns the application object of IHclFtpEngine type.
BASIC Syntax variable = Application
Parameters This property has no parameters.
Count property
This property returns the number of current sessions.
BASIC Syntax Count = variable
variable = Count
Parameters This property has no parameters.
User-Defined Types
The following are the user-defined types:
TFirewall data type
TLocalCase data type
TTransfer data type
home Directory
The directory in which your software was installed. Binary files and utilities for Hummingbird
products are stored in the home directory.
Introducing WyseTerm API
WyseTerm is a communications and terminal emulation program that supports ANSI-BBS, SCO
ANSI, WYSE-50, WYSE-60, VT320, and VT220 (also supports VT220 7-bit or 8-bit, VT100, or
VT52) terminal modes. WyseTerm allows a user at one site to access a remote host as if the
user's display station was locally attached.
You can use The WyseTerm API to customize your WyseTerm terminal emulation settings by
using DDE and OLE to create dynamic links between Telnet and any other application.
DDE and OLE are mechanisms that allow applications to work together. DDE lets the
applications talk to each other: one as the server and the other as the client. In Telnet, DDE can
only act as a server. OLE lets the secondary application communicate with Telnet and define a
set of properties and methods in it. As a result, OLE gives programmatic access to Telnet
components from high-level programming languages and application scripting systems like
Hummingbird Basic.
Using DDE and Telnet
Since Telnet is the server, the client application must establish a communications channel with
Telnet. Communication takes place on a topic basis. This means that Telnet sets itself up as the
server for a defined topic. The client then communicates with the server on a particular item of
that topic. Normally, the client requests data on a particular item from Telnet, or simply makes a
request that does not require the return of data.
To use DDE as a server, you must first click the Telnet DDE Server command on the Settings
menu of the WyseTerm application You cannot use Telnet as a DDE client to another
application. For more information on using Telnet, see Related Topics below:
Related Topics
Conversing with Telnet using DDE
Acessibility
Getting Technical Support
Conversing with Telnet using DDE
In a DDE client/server conversation, Telnet can be used only as a DDE server. To use DDE as
a server, you must first choose the Telnet DDE Server command on the Settings menu of the
WyseTerm application. You cannot use Telnet as a DDE client to another application
In order for a DDE client to establish a connection with Telnet, you must specify the following in
the order listed:
• The server’s name (in the case of Telnet, htelnet).
• The topic it wants to have a conversation about.
You can represent this application-topic pair using the following command:
Appname|topic
For example,
Telnet|System
Once the client has established a connection, Telnet responds to the request transaction items
issued. Some items return information, while other items perform functions. The most commonly
used transaction items in Telnet include the following:
• request transaction items
• execute transaction items
Note: Check all execute transactions using the ExecReturn request transaction item.
Related Topics
Request and Execute Syntax
Request and Execute syntax
After you have started Telnet in automation mode, you can begin to configure it using request
and execute items. The syntax for these items is described below.
Request Syntax
Use the following command to set a property to a value:
anyrequest=value
where anyrequest is any request item, and value is a setting you can make for that item.
Use the following command to get a request and store the value:
value=anyexecute(parameter list)
where anyexecute is any execute item and parameter list is the appropriate values that
the execute item requires. Commas separate multiple parameters.
Execute Syntax
Use the following command to call the Telnet topic request with value as its parameter:
anyexecute=value
where anyexecute is any execute item and value is a setting you can make for that item.
DDE Topics Available in Telnet
If you are trying to establish a connection with the Telnet application, you must pre-specify all
conversation topics at the beginning of a connection attempt. You can choose any combination
of the following DDE topics in Telnet:
System—lets the client determine what topics are available and assess the format types of the
messages. The System topic is a standard DDE server topic.
Terminal—lets the client control the terminal emulation mode (ANSI-BBS, SCOANSI, VT220,
VT320, WYSE50, WYSE60, or DG210) and other connection settings in the Telnet program. It
also lets the client load previously saved settings files.
Emulation—lets the client make changes to the settings in the Telnet program. You can set all
options available on the Property tab of the Modify Terminal Setup dialog box in WyseTerm. To
view these settings, open WyseTerm and click Terminal on the Settings menu.
Page Topic—lets the client control the current displayable properties such as color and attribute
settings that can be changed manually in Telnet in the Modify Terminal Setup dialog box. It also
allows the client to retrieve blocks of characters from anywhere on the display screen.
System Topic Request Items (HTelnet|System)
The System topic is a standard DDE server topic, which lets clients determine what topics are
available and assess the format types of the messages. The System topic has the following
request transaction items:
Topics item
SysItems item
Formats item
Topics Item
Lists the available topics as follows:
• System
• Terminal
• EmulationType
• Page
Syntax Topics
Related Topics
System Topic Request items (HTelnet|System)
SysItems Item
Lists the available request items in the System Topic. You can choose one of the following:
• Topics item
• SysItems item
• Formats item
Syntax SysItems
Related Topics
System Topic Request items (HTelnet|System)
Terminal Topic items (HTelnet|Terminal)
Emulation Type Topic items(HTelnet|EmulationType)
Terminal Topic Items (HTelnet|Terminal)
The Terminal topic lets the client control the terminal emulation mode (ANSI-BBS, SCOANSI,
VT220, VT320, WYSE50, WYSE60, or DG210) and other connection settings in the Telnet
program. It also lets the client load previously saved settings files. The Terminal topic includes
both request and execute items.
Request Items
Terminal Topic has following request transaction items:
ConnectionStatus item
EmulationType item
ExecReturn item
Formats item
SaveData item
TopicItemList item
Execute Items
To perform an execute transaction, you must fill the data with text corresponding to the
command. To confirm that the command succeeded, you must perform a request transaction
using the ExecReturn item (see the preceding list) to confirm that the execute transaction was
successful.
The Exec command should consist only of the command name and any parameters. Do not
include any spaces.
Terminal Topic has the following Execute transaction items:
LoadSetupFile item
ConnectRlogin item
ConnectTelnet item
Disconnect item
SendString item
SendStringToTerminal item
LookForString item
StartDataSave item
StopDataSave item
TopicItemList Item
Lists the available request items in the Terminal Topic. You can choose one of the following:
• TopicItemList
• Formats
• EmulationType
• ConnectionStatus
• ExecReturn
• SaveData
Syntax TopicItemList
Parameters This method has no parameters.
Related Topics
Terminal Topic items (HTelnet|Terminal)
Emulation Type Topic items(HTelnet|EmulationType)
EmulationType Item
Returns the current emulation type. Telnet supports the following types:
• ANSI-BBS
• SCIANSI
• VT220
• VT320
• Wyse50
• Wyse60
• DG210
Syntax EmulationType
Parameters This method has no parameters.
Related Topics
Terminal Topic items (HTelnet|Terminal)
ConnectionStatus Item
Returns the current state of the connection to the Telnet application. Telnet returns one of the
following three states:
• connected
• connecting
• disconnecting
Syntax ConnectionStatus
Parameters This method has no parameters.
Related Topics
Terminal Topic items (HTelnet|Terminal)
ExecReturn Item
Returns the result of the last called Execute transaction.
Syntax ExecReturn
Parameters This method has no parameters.
Related Topics
Terminal Topic items (HTelnet|Terminal)
Emulation Type Topic items(HTelnet|EmulationType)
SaveData Item
Returns text that was previously saved with the StartDataSave execute item.
Syntax SaveData
Parameters This method has no parameters.
Related Topics
Terminal Topic items (HTelnet|Terminal)
StartDataSave
LoadSetupFile Item
Loads a Telnet settings file. If you do not specify the path, the script uses the USER directory. If
the file loads, the item returns a TRUE value. If the file does not load, the script returns a
FALSE value.
Syntax LoadSetupFile (Filename.hts)
Parameters Filename.hts—is the name of the settings file
you want to load.
Related Topics
Terminal Topic items (HTelnet|Terminal)
ConnectRlogin Item
Establishes a connection using the RLOGIN protocol. Use the ConnectStatus request item to
determine if the connection is successful. The item returns a TRUE value if the connection is
successful and a FALSE value if the connection fails.
Syntax ConnectRlogin (hostname.port)
Parameters hostname—is the name of the host to which
you want to connect.
port—is the port you through which you
want to make the connection.
Related Topics
Terminal Topic items (HTelnet|Terminal)
ConnectTelnet Item
Establishes a connection using the TELNET protocol. Use the ConnectStatus request item to
determine if the connection is successful. The item returns a TRUE value if the connection is
successful and a FALSE value if the connection fails.
Syntax ConnectTelnet (hostname.port)
Parameters hostname—is the name of the host to which
you want to connect.
port—is the port you through which you
want to make the connection.
Related Topics
Terminal Topic items (HTelnet|Terminal)
Disconnect Item
Disconnects you from your current host session. Use the ConnectStatus request item to
determine if the disconnection is successful. The item returns a TRUE value if the disconnection
was successful and a FALSE value if the disconnection fails.
Syntax Disconnect()
Related Topics
Terminal Topic items (HTelnet|Terminal)
SendString Item
Sends the character string to the host as it appears in the str argument. This item returns a
TRUE value if successful and a FALSE value if not successful.
Syntax SendString (str)
Parameters str—is any character string consisting of
letters, numbers, and symbols.
Related Topics
Terminal Topic items (HTelnet|Terminal)
SendStringToTerminal Item
Sends the character string to a terminal as if sent by the host. This item sends the string as it
appears in the str argument. This item returns a TRUE value if successful and a FALSE value
if not successful.
Syntax SendStringToTerminal (str)
Parameters str—is any character string consisting of
letters, numbers, and symbols.
Related Topics
Terminal Topic items (HTelnet|Terminal)
LookForString Item
Looks for a string (as it appears in the str argument) in the incoming data stream from the
host. This item creates a new item with the same name as str. To delete the new item, set its
value to an empty string. This item returns a TRUE value if successful and a FALSE value if not
successful.
Syntax LookForString (str)
Parameters str—is any character string consisting of
letters, numbers, and symbols.
Related Topics
Terminal Topic items (HTelnet|Terminal)
StartDataSave Item
Initializes the SaveData item (to blank) and starts saving the host data stream to it. This item
returns a TRUE value if successful and a FALSE value if not successful.
Syntax StartDataSave
Parameters This method has no parameters.
Related Topics
Terminal Topic items (HTelnet|Terminal)
StopDataSave Item
Stops saving the data stream to the SaveData item. This item returns a TRUE value if
successful and a FALSE value if not successful.
Syntax StopDataSave
Parameters This method has no parameters.
Related Topics
Terminal Topic items (HTelnet|Terminal)
Emulation Type Topic Items (HTelnet|EmulationType)
The Emulation Type topic lets the client make changes to the settings in the Telnet program.
You can set all options available on the property tab of the Modify Terminal Setup dialog box in
WyseTerm. The Emulation Type topic includes both request and execute items.
Request Items
The following request transaction items exist for the Emulation Type topic.
TopicsItemList Item
Formats item
CursorPosition item
ExecReturn item
Execute Items
To perform an execute transaction, you must fill the data with text corresponding to the
command. To confirm that the command succeeded, you must perform a request transaction
using the ExecReturn item (see the preceding list) to confirm that the execute transaction was
successful.
The Exec command should consist only of the command name and any parameters. Do not
include any spaces.
The Emulation Type topic has the following Execute transaction items.
GetOption item
SetOption item
ReadKeyboardFile item
SetAttributeColor item
SetAttributeUsage item
CursorPosition Item
Returns the current cursor position as a row, column or string. You can change the cursor
position with a poke transaction to this item name. Specify the row and column position as the
poke data.
Syntax CursorPosition
Parameters This method has no parameters.
Related Topics
Emulation Type Topic items(HTelnet|EmulationType)
GetOption Item
Gets the value of the option specified by the emulation option parameter. Generic options are
available in all emulation modes. Each mode has specific options that are available only when
you select that mode.
Syntax GetOption (emulationoption)
Parameters emulationoption—is any terminal
emulation-specific setting.
Related Topics
Emulation Type Topic items(HTelnet|EmulationType)
Emulation options
SetOption Item
Sets the value of the option specified by the emulation option parameter. Generic options are
available in all emulation modes. Each mode has specific options that are available only when
you select that mode.
Syntax SetOption (emulationoption, value)
Parameters emulationoption—is any terminal
emulation-specific setting.
value—is the value assigned to the option.
Related Topics
Emulation Type Topic items(HTelnet|EmulationType)
Emulation options
ReadKeyboardFile Item
Reads a keyboard file in order to change the mapping of the PC key combination that is needed
to forward host keys to the host.
Note: The HKeyMap program must create these keyboard files. This program can be started
only in Telnet. The HKeyMap program is not DDE enabled. As a result, this item can read only
existing keyboard files.
Syntax ReadKeyboardFile(filename)
Parameters emulationoption—is any terminal emulation-
specific setting.
filename—is the name and path of the
keyboard file you want to read.
Related Topics
Emulation Type Topic items(HTelnet|EmulationType)
SetAttributeColor Item
Sets the color you want shown for the attribute you specify. The screen updates to reflect this
change. The color consists of the foreground color and the background color. For example,
SetAttributeColor(bold,red,blue) causes all bolded characters to display with red text and
blue background. You can define the characteristics of this attribute using the
SetAttributeUsage command.
Syntax SetAttributeColor(attr,fgcolor,bgcolor)
Parameters attr—is the name of the attribute.
fgcolor—is the foreground color.
bgcolor—is the background color.
Related Topics
Emulation Type Topic items(HTelnet|EmulationType)
Emulation options
SetAttributeUsage item
SetAttributeUsage Item
Sets the display of the attribute you specify. You can change the foreground color or the actual
screen attribute characteristic itself. For example, you can change all bold characters to display
underlined. The screen updates to reflect this change.
Syntax SetAttributeUsage(attr,realAttrib,realcolor)
Parameters attr—is the name of the attribute.
realAttr—is the attribute characteristic you want to
assign.
bgcolor—is the foreground color of the attribute.
Related Topics
Emulation Type Topic items(HTelnet|EmulationType)
Emulation options
Emulation Options
The GetOption() and SetOption() items require that you specify generic emulation
options. Some of the options you can use with these items are listed below by category:
• Generic options—These options are available for all emulation modes.
• VT 220 and VT320 options
• Wyse50 and Wyse60 options
See the appropriate section for a complete listing of available options.
Generic Options
Option Name Return Values
Interpret TRUE–control codes are interpreted and
not displayed
FALSE–control codes are displayed and
not interpreted
CaptureMode OFF/ON/ONHOSTCONTROL–determines
if the incoming data is captured to a file
Related Topics
Page Topic Items (HTelnet|Page)
CurrentBGColor Item
Determines the current background color given to new characters. Nocolor is the default.
Syntax CurrentBGColor
Parameters This method has no parameters.
Related Topics
Page Topic Items (HTelnet|Page)
CurrentAttribute Item
Determines the current attribute applied to new characters.
Syntax CurrentAttribute
Parameters This method has no parameters.
Related Topics
Page Topic Items (HTelnet|Page)
CharacterAt Item
Returns all the characters between the first and second R?C?. The top left corner of the screen
has a value of r,c=1,1, and the bottom right is R,C=24,80, or R,C=24,132 depending upon the
current column width. For Example, CharacterAtR1C1R24C80 returns all characters between
the x, y coordinates of (1,1) and (24,80).
Note: You can access the history buffer by specifying a number between 0 and -
HistorySize+1.
Syntax CharacterAtR?C?R?C?
Parameters This method has no parameters.
Related Topics
Page Topic Items (HTelnet|Page)
Valid Colors and Attributes
CharacterAttributeAt Item
Returns the attribute of all characters between the first and second R?C?. The top left corner of
the screen has a value of R,C=1,1, and the bottom right is R,C=24,80, or R,C=24,132
depending upon the current column width. For example, CharacterAttributeAtR1C1R24C80
returns the attribute of all characters between the x, y coordinates of (1,1) and (24,80).
Note: You can access the history buffer by specifying a number between 0 and
–HistorySize+1.
Syntax CharacterAttributeAtR?c?R?C?
Parameters R?—is the number of the row.
C?—is the number of the column.
Related Topics
Page Topic Items (HTelnet|Page)
Valid Colors and Attributes
CharacterFGColorAt Item
Returns all the foreground colors of the characters between the first and second R?C?. The top
left corner of the screen has a value of R,C=1,1 and the bottom right is , c=24,80, or r,c,=24,132
depending on the current column width. For example, CharacterFGColorAtR1C1R24C80
returns the foreground color of all characters between the x,y coordinates of (1,1) and (24,80).
Note: You can access the history buffer by specifying a number between 0 and
–HistorySize+1.
Syntax CharacterFGColorAtR?C?R?C?
Parameters R?—is the number of the row.
C?—is the number of the column.
Related Topics
Page Topic Items (HTelnet|Page)
Valid Colors and Attributes
CharacterBGColorAt Item
Returns all the background colors of the characters between the first and second R?C?. The top
left corner of the screen has a values of r,c,=1,1, and the bottom right is r,c,+24,80, or
r,c=24,132 depending on the current column width.
Syntax CharacterBGColorAtR?C?R?C?
Parameters R?—is the number of the row.
C?—is the number of the column.
Related Topics
Page Topic Items (HTelnet|Page)
Valid Colors and Attributes
Valid Colors and Attributes
Various items require that you specify either a valid color and/or attribute as parameter of its
function. In other cases, a color or an attribute may be returned as part of a transaction. The
supported colors and attributes, with their numeric values, are listed below.
Note: To create a multi-characteristic attribute in C/C++, attributes are bit ORed
together for the final attribute. To create a multi-characteristic attribute in Basic, they
are added together to generate a final attribute.
Colors
Color DDE String Values OLE Decimal
Values
black Black 0
blue Blue 1
green Green 2
cyan Cyan 3
red Red 4
magenta Magenta 5
brown Brown 6
grey grey 8
yellow yellow 14
white white 15
nocolor nocolor 16
Attributes
Attribute DDE String Values OLE Decimal Value OLE Hex Value
Related Topics
Starting Telnet in Hummingbird Basic using OLE
Available OLE Objects in Telnet
Starting Telnet in Hummingbird Basic using OLE
To start Telnet in OLE automation mode, you must create an object variable and associate that
variable with the application on your system.
1. Declare Telnet as the object. For example:
Dim Telnet as object
2. Start the application, if it is not already running, using the Telnet object. For example,
set Telnet=CreateObject(“Hummingbird.Telnet”)
If the application is already running, connect to it using the following statement:
set Telnet=GetObject(,"Hummingbird.Telnet")
Note: The comma preceding "Hummingbird Telnet".
3. Configure Telnet using the properties and methods included.
Related Topics
Available OLE Objects in Telnet
Property and Method Syntax
After you have started Telnet in automation mode, you can configure properties and perform
method calls. The syntax for these commands is outlined below:
Property Syntax
Use the following command to set the property value:
Telnet.property=value
where property is any property item and value is a setting you can make for that property.
Use the following command to get a property and store the values.
value=Telnet.method(parameter list)
where method is any method item and parameter list is the appropriate values that the
method item requires. Commas separate multiple parameters.
All properties have a VarType. A VarType is the associate variable type in which the Property
fits.
Method Syntax
Use the following command to call the Telnet object’s method with value as its parameter:
Telnet.method=value
where method is any method item and value is a setting you can make for that method.
Related Topics
Available OLE Objects in Telnet
Available OLE Objects in Telnet
You can use OLE objects to configure Telnet settings. In Telnet, there are four OLE objects
available:
Telnet Object—This object holds pre-connection and configuration management information.
You can specify a settings file to use through this object, as well as determine the current
emulation type in use. As well, you can send characters to the terminal and search for incoming
characters using this object.
Emulation Object—This object is referenced through the Telnet Object as the LPDISPATCH
emulationObject property. This object holds all emulation type information and controls the
emulation-specific settings found on the Emulation-specific tab in the Modify Terminal Setup
dialog box. The object contents depend on the current emulation type. Depending on which
emulation type is selected, ANSI-BBS, SCOANSI, VT220, VT320, WYSE50 or WYSE60, the
content of this property sheet changes.
Page Object—The Page object is referenced through the Telnet Object as the LPDISPATCH
pageObject property. Use this object to control all information related to the screen and its
contents.
Title Object—The Title object is referenced through the Telnet Object as the LPDISPATCH title
property. This property holds all information related to the title and its contents, and is both
readable and writeable.
Note: The Emulation object and the Page objects are always referenced through the
Telnet object
Telnet Object
The Telnet object holds pre-connection basic configuration management information. You can
specify a settings file to use through this object, as well as determine the current emulation type
in use. As well, you can send characters to the terminal and search for incoming characters
using this object.
The Telnet object has the creatable name of hummingbird.telnet, and consists of the
following properties and methods.
Properties
EmulationType property
ConnectionStatus property
EmulationObject property
Page Object
Title Object
Methods
LoadSetupFile method
ConnectRlogin method
ConnectTelnet method
Disconnect method
Visible BOOL method
Name method
Fullname method
SendString method
SendStringToTerminal method
LookForString method
GetEventStatus method
RemoveEvent method
StartDataSave method
ReadData method
StopDataSave method
EmulationType Property
Returns the current emulation type. The following list details the types Telnet supports and the
values for each type:
• ANSI-BBS—1
• SCOANSI—2
• VT220—3
• VT320—4
• WYSE50—5
• WYSE60—6
Syntax EmulationType
Parameters This property has no parameters.
VarType short
Related Topics
Telnet Object
ConnectionStatus Property
Returns the current connection state of the Telnet application. The following list details the three
states Telnet can return and the values for each type:
• Connected—2
• Connecting—1
• Disconnecting—0
Syntax ConnectionStatus
Parameters This property has no parameters.
VarType Short
Related Topics
Telnet Object
EmulationObject Property
This property is an object reference to the Emulation object. The following list details the
possible object types:
Syntax EmulationObject
Parameters This property has no parameters.
VarType LPDISPATCH
Related Topics
Telnet Object
LoadSetupFile Method
Loads a Telnet settings file. If you do not specify a path, the script uses the USER directory.
Syntax LoadSetupFile(str)
Parameters str—is the name of the settings file you want to load.
VarType BOOL
Related Topics
Telnet Object
ConnectRlogin Method
Establishes a connection using the RLOGIN protocol. Use the ConnectStatus property to
determine if the connection is successful.
Syntax ConnectRlogin(str host,str port)
Parameters str host—is the name of the host to which you
want to connect.
str port—is the port you want to use to
establish the connection.
Return Type BOOL
Related Topics
Telnet Object
ConnectTelnet Method
Establishes a connection using the TELNET protocol. Use the ConnectStatus property to
determine if the connection is successful.
Syntax ConnectTelnet(str host,str port)
Parameters str host—is the name of the host to which you
want to connect.
str port—is the port you want to use to
establish the connection.
Return Type BOOL
Related Topics
Telnet Object
Disconnect Method
Disconnects you from your current host session. Use the ConnectStatus property to determine if
the disconnection is successful.
Syntax Disconnect()
Parameters This method has no parameters.
Return Type BOOL
Related Topics
Telnet Object
Visible BOOL Method
Shows or hides the Telnet window.
Syntax Visisble BOOL
Parameters This method has no parameters.
Return Type True=visible
False=hide
Related Topics
Telnet Object
Name Method
Returns the Telnet application file name. This is a read only command. Use this method if you
have multiple applications running to determine from where the Telnet session is running.
Syntax Name
Parameters This method has no parameters.
Return Type BSTR
Related Topics
Telnet Object
Fullname Method
Returns the Telnet application path and file name. This is a read only commands. Use this
method if you have multiple applications running to determine from where the Telnet session is
running.
Syntax Fullname
Parameters This method has no parameters.
Return Type BSTR
Related Topics
Telnet Object
SendString Method
Sends the character string to the host as it appears in the STR str argument.
Syntax SendString(STR str)
Parameters STR str—is any character string consisting of
letters, numbers, and symbols.
Return Type BOOL
Related Topics
Telnet Object
SendStringToTerminal Method
Sends the character string to a terminal as if sent by the host. This item sends the string as it
appears in the STR str argument.
Syntax SendStringToTerminal(STR str)
Parameters Str str—is any character string consisting of
letters, numbers, and symbols.
Return Type BOOL
Related Topics
Telnet Object
LookForString Method
Looks for a string (as it displays in the STR str argument) in the incoming data stream from
the host. This method creates a new item with the same name as STR. To find the result of the
search, use the event number returned, and call GetEventStatus using this number. To delete
the event, use this same number with RemoveEvent.
Syntax LookForString(STR str)
Parameters Str str—is any character string consisting of
letters, numbers, and symbols.
Return Type SHORT EVENT—representing a number that is
initially false.
Related Topics
Telnet Object
GetEventStatus Method
Returns the status of an event. To remove the event, use the event number returned with
RemoveEvent.
Syntax GetEventStatus(short event)
Parameters short event—is the number between 0 and
65535 returned in the LookForString method..
Return Type BOOL
Related Topics
Telnet Object
RemoveEvent Method
Removes the event for which you are looking.
Syntax RemoveEvent(short event)
Parameters short event—is the number between 0 and
65535 returned in the LookForString method..
Return Type VOID
Related Topics
Telnet Object
StartDataSave Method
Starts saving the data stream for the ReadData method to read.
Syntax StartDataSave()
Parameters This method has no parameters.
Return Type VOID
Related Topics
Telnet Object
ReadData Method
Reads data that you captured using the StartDataSave method.
Syntax ReadData
Parameters This method has no parameters.
Return Type STRING
Related Topics
Telnet Object
StopDataSave Method
Stops saving the data stream to ReadData.
Syntax StopDataSave
Parameters This method has no parameters.
Return Type VOID
Related Topics
Telnet Object
Emulation Object
The Emulation object is referenced through the Telnet Object as the LPDISPATCH
emulationObject property. This object holds all emulation type information and controls the
emulation-specific settings found on the Emulation-specific tab in the Modify Terminal Setup
dialog box. The object contents depend on the current emulation type. Depending on which
emulation type is selected, ANSI-BBS, SCOANSI, VT220, VT320, WYSE50 or WYSE60, the
content of this property sheet changes.
This object contains properties and methods common to all emulation type objects. For some
emulation types there are specific additional properties and methods.
Generic Properties and Methods
VT220 and VT320 Properties
WYSE50 and WYSE60 Properties
Generic Properties and Methods
The properties and methods listed below are available for all emulation modes.
Properties
Interpret property
Autowrap property
BackSpaceDelete property
WarningBell property
NewLine property
TermStringId property
LocalEcho property
Online property
DisplayLines property
DisplayWidth80 property
SmoothScroll property
JumpScrollNumber property
History property
HistorySize property
CaptureMode property
CaptureDestination property
CurrentRow property
CurrentCol property
Methods
ReadKeyboardFile method
SetAttributeColor method
SetAttributeUsage method
Interpret Property
Interprets or displays control codes. The default is TRUE.
Syntax Interpret
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
Autowrap Property
Determines if lines wrap or not. The default is FALSE.
Syntax AutoWrap
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
BackSpaceDelete Property
Determines if the backspace key sends a delete command or a backspace command. TRUE
sends delete, and FALSE sends backspace.
Syntax BackSpaceDelete
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
WarningBell Property
Determines if a bell rings or not. The default is TRUE.
Syntax WarningBell
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
NewLine Property
Determines if the Return key sends a CRLF command. True sends a CRLF command, and
FALSE sends a CR only. The default is TRUE.
Syntax NewLine
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
TermStringId Property
Determines the string ID of a Terminal. The string is different for each terminal type.
Syntax TermStringId
Parameters This property has no parameters.
VarType STR
Related Topics
Emulation Object
LocalEcho Property
Determines if typed characters are displayed locally by the client terminal. The default is
FALSE.
Syntax LochalEcho
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
Online Property
Determines if typed characters are forwarded to the host, or just reflected on the client terminal.
The default is TRUE.
Syntax Online
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
DisplayLines Property
Determines the number of lines used in the terminal’s display (range or 1-100). The default
number of lines is 24.
Syntax DisplayLines
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
DisplayWidth80 Property
Determines the width, in columns, of the terminal’s display. TRUE is 80 columns, and FALSE is
132 columns. The default is TRUE.
Syntax DisplayWidth80
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
SmoothScroll Property
Determines how the terminal scrolls through data. TRUE scrolls smoothly through the data, and
FALSE jump scrolls through it. The default is FALSE.
Syntax SmoothScroll
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
JumpScrollNumber Property
Determines the number of lines that are jumped when scrolling through data. The value can be
between 2-10.
Syntax JumpScrollNumber
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
History Property
Determines if the scroll back history buffer is used. TRUE keeps the scroll back buffer, and
FALSE does not. The default is TRUE.
Syntax History
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
HistorySize Property
Determines the size of the scroll back history buffer. The number can be between 1-1000. The
default is 200.
Syntax HistorySize
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
CaptureMode Property
Determines if the incoming data is captured to a file. The values are as follows:
• 0=off
• 1=on
• 2=on with host control
Syntax CaptureMode
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
CaptureDestination Property
Determines the destination file of the captured output.
Syntax CaptureDestination
Parameters This property has no parameters.
VarType STR
Related Topics
Emulation Object
CurrentRow Property
Determines the current row on the page.
Syntax CurrentRow
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
CurrentCol Property
Determines the current column on the page.
Syntax CurrentCol
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
ReadKeyboardFile Method
Reads a keyboard file to change the mapping of the PC key combinations needed to forward
host keys to the host.
Note: The HKeyMap program must create these keyboard files. This program can be
started only in Telnet. The HKeyMap program is not DDE enabled. As a result, this
item can read only existing keyboard files.
Related Topics
Emulation Object
SetAttributeColor Method
Sets the foreground and background color for an attribute.
Note: Attributes can be ORed together.
Related Topics
Emulation Object
VT220 and VT320 Properties
The properties listed below are available for either the VT220 or VT320 emulation modes.
VT220
UFLock property
UDKLock property
EmulationMode property
NationalSet property
Multinational property
VT320
UserPrefCharSetISO property
StatusLine property
UFLock Property
Determines if user features are locked or not. If TRUE, the user features are locked, and if
FALSE, the user features are not locked.
Syntax UfLock
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
UDKLock Property
Determines if the user-defined keys are locked or not. If TRUE, the user-defined keys are
locked, and if FALSE, the user-defined keys are not locked.
Syntax UDKfLock
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
EmulationMode Property
Determines the emulation mode. The following list details the possible emulation modes and
their values:
• VT52—0
• VT100—1
• VT200 7bit—2
• VT200 8bit—3
Syntax EmulationMode
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
NationalSet Property
Determines which National Character Set is used. The following list details the available
National Character Set modes and their values:
• North American—0
• UK—1
• Dutch—2
• Finish—3
• French—4
• French Canadian—5
• German—6
• Italian—7
• Norwegian/Danish—8
• Portuguese—9
• Spanish—10
• Swedish—11
• Swiss—12
Syntax NationalSet
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
Multinational Property
Determines if DEC multinational characters are used. If TRUE, DEC characters are used, and if
FALSE, only the National Character Set is used.
Note: If this value is TRUE and UserPrefCharSetISO is TRUE, then ISO Latin 2 is the
character set used.
Syntax Multinational
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
UserPrefCharSetISO Property
Determines which character set is used. If TRUE, ISO LATIN 1 is used, and if FALSE, DEC
multinational is used.
Syntax UserPrefCharSetISO
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
StatusLine Property
Determines how terminal information displays. The following list details the possible StatusLine
settings and their values:
• Off—0
• On—1
• host writable—2
Syntax StatusLine
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
WYSE50 and WYSE60 Properties
The properties listed below are available for both the WYSE50 or WySE60 emulation modes.
ApplicationMode property
EditModeLocal property
BlockEndUSCR property
AutoPageMode property
AutoScroll property
CommMode property
ActivePage property
ActivePageSize property
ApplicationMode Property
Determines if keys are in application mode. TRUE means the keys are in application mode, and
FALSE means they are not. The default mode is FALSE.
Syntax ApplicationMode
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
EditModeLocal Property
Determines if a remote file can be edited on the client terminal. If TRUE, the client is working in
local mode and can edit the file, and if FALSE, it is not in local mode and cannot edit the file.
The default mode is FALSE.
Syntax EditModeLocal
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
BlockEndUSCR Property
Determines if the USCR is used as the block terminator. If TRUE, USCR is used, and if FALSE,
it is not.
Syntax BlockEndUSCR
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
AutoPageMode Property
Determines if the client terminal moves to the next page. If TRUE, the client terminal moves to
the next page automatically; if FALSE, it does not.
Syntax AutoPageMode
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
AutoScroll Property
Determines if the page scrolls so that new text appears on a new bottom line. If TRUE, text
automatically scrolls; if FALSE, text wraps to the top of the page.
Syntax AutoScroll
Parameters This property has no parameters.
VarType BOOL
Related Topics
Emulation Object
CommMode Property
Determines the current communication mode. The following list details the possible
communication modes and their values:
• Full Duplex—0
• Half Duplex—1
• Block—2
Syntax CommMode
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
ActivePage Property
Determines the number of Wyse pages that are active. You can have any number of active
pages between 0 and 3.
Note: Changing this value changes the state of PageObject to correspond to this new
active page. As a result, PageObject is the only current active page in WYSE50 or
WYSE60 mode.
Syntax ActivePage
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
ActivePageSize Property
Determines the page size of the active page. You can have active page size in the range 0
to100.
Note: Each page can have a different size.
Syntax ActivePageSize
Parameters This property has no parameters.
VarType SHORT
Related Topics
Emulation Object
Page Object
The Page object is referenced through the Telnet Object as the LPDISPATCH pageObject
property. Use this object to control all information related to the screen and its contents.
The Page Object has the following properties and methods.
Properties
FGColor
BGColor
Attribute
Methods
GetCharacter
GetCharacterString
GetCharacterAttrib
GetCharacterFGColor
GetCharacterBGColor
SetCharacter
SetCharacterAttrib
SetCharacterFGColor
SetCharacterBGColor
FGColor Property
Determines the current foreground color given to all new characters. Default is Nocolor.
Syntax FGColor
Parameters This property has no parameters.
VarType SHORT
Related Topics
Page Object
BGColor Property
Determines the current background color given to all new characters. Default is Nocolor.
Syntax BGColor
Parameters This property has no parameters.
VarType SHORT
Related Topics
Page Object
Attribute Property
Determines the current attribute given to all new characters. Attributes can be ORed together to
generate a whole attribute.
Syntax Attribute
Parameters This property has no parameters.
VarType SHORT
Related Topics
Page Object
GetCharacter Method
Returns the character from the r, c coordinates. For example GetCharacter(2,75) returns the
character from the second row and the 75th column.
Syntax GetCharacter(short r, short c)
Parameters short r—is the number of the row where the
character is located.
short c—is the number of the column where the
character is located.
VarType UNSIGNED CHAR
Related Topics
Page Object
GetCharacterString Method
Returns the characters from the r, c coordinate pair. The top left corner of the screen has a
value of r,c=1,1, and the bottom right is r,c=24,80, or r,c=24,132 depending upon the current
column width. For example, StrBuf=Telnet.GetCharString (1,1,24,80) returns all characters
between the r, c coordinates of (1,1) and (24,80).
Note: To access the history buffer, specify a number between 0 and -HistorySize+1.
Related Topics
Page Object
GetCharacterAttrib Method
Returns the attribute of a character. The top left corner of the screen has a value of r,c=1,1, and
the bottom right is r,c=24,80, or r,c=24,132 depending upon the current column width. For
example, GetCharacterAttrib(1,1) returns the attribute of the character between the r, c
coordinates of (1,1).
Note: To access the history buffer, specify a number between 0 and -HistorySize+1.
Related Topics
Page Object
GetCharacterFGColor Method
Returns the foreground color of a character. The top left corner of the screen has a value of
r,c=1,1, and the bottom right is r,c=24,80, or r,c=24,132 depending upon the current column
width. For example, GetCharacterFGColor(1,1) returns the foreground color of the character
between the r, c coordinates of (1,1).
Note: To access the history buffer, specify a number between 0 and -HistorySize+1.
Related Topics
Page Object
GetCharacterBGColor Method
Returns the background color of a character. The top left corner of the screen has a value of
r,c=1,1, and the bottom right is r,c=24,80, or r,c=24,132 depending upon the current column
width. For example, GetCharacterBGColor(1,1) returns the background color of the character
between the r, c coordinates of (1,1).
Note: To access the history buffer, specify a number between 0 and -HistorySize+1.
Related Topics
Page Object
SetCharacter Method
Changes the character at the r, c coordinates. Changes the character at the r, c coordinates.
For example, SetCharacter(1,1,"q") changes the character between the r, c coordinates of (1,1)
to "q".
Note: To access the history buffer, specify a number between 0 and -HistorySize+1.
Related Topics
Page Object
SetCharacterAttrib Method
Sets a character attribute at the r, c coordinates. The top left corner of the screen has a value of
r,c=1,1, and the bottom right is r,c=24,80, or r,c=24,132 depending upon the current column
width. For example, SetCharacterAttrib(1,1,"0x40") changes the character attribute between the
r, c coordinates of (1,1) to "0x40"--a private attribute.
Note: To access the history buffer, specify a number between 0 and -HistorySize+1.
Related Topics
Page Object
SetCharacterFGColor Method
Sets the foreground color of the character at the r, c coordinates. The top left corner of the
screen has a value of r,c=1,1, and the bottom right is r,c=24,80, or r,c=24,132 depending upon
the current column width. For example, SetCharacterFGColor(1,1,7) changes the character’s
foreground color between the r, c coordinates of (1,1) to 7--a dark white color.
Note: To access the history buffer, specify a number between 0 and -HistorySize+1.
Related Topics
Page Object
SetCharacterBGColor Method
Sets the background color of the character at the r, c coordinates. The top left corner of the
screen has a value of r,c=1,1, and the bottom right is r,c=24,80, or r,c=24,132 depending upon
the current column width. For example, SetCharacterBGColor(1,1,7) changes the character’s
background color between the r, c coordinates of (1,1) to 7--a dark white color.
Syntax SetCharacterBGColor(short r, short c unsigned
char color)
Parameters short r—is the number of the row where the character is
located.
short c—is the number of the column where the character
is located.
unsigned char color—is the character color you want to
set.
VarType VOID
Related Topics
Page Object
Telnet Object
Title Object
The Title object is referenced through the Telnet Object as the LPDISPATCH title property. This
property holds all information related to the title and its contents, and is both readable and
writeable.
After the OLE client changes the title property, it cannot be changed again until you set its value
to empty (null) and reset the title. If you want a blank title, use a single space.
The default title is:
Telnet Hostname[IP]
where hostname is the name of the PC to which you want to connect, and IP is its IP address.
Or:
Telnet
if no connection has been established.
Changing the Title
The following script changes a title:
'Sample Hummingbird Basic snippit to do this (Same for Visual Basic)
Set Term=CreateObject ("Hummingbird.Telnet")
Term.visible=1
'Telnet is now visible
Term.title="Personalized Telnet"
'do something with new title being shown
Term.title=""
'empty title reverts to default
Term.title=Chr$(32)'space character
'appears as blank
Fax: + 1-416-496-2207
E-mail: support@hummingbird.com
FTP: ftp.hummingbird.com
WebSupport: support.hummingbird.com/customer
When calling Technical Support, it is preferable that you are at your computer with the
Hummingbird application running. The Technical Support representative can then guide you.
Please be prepared to provide some of the following information, depending on your technical
issue:
1. Product Name & Version Number
2. Operating System & Version Number
3. Service Pack used, if any
4. Language
5. Type of Computer (make/model)
6. Processor (Pentium/speed)
7. Memory (amount/capacity)
8. Hard Disk Space (capacity and availability)
9. Video Card (make/model/memory)
10. Network Card & Settings (driver type/make/model/8 vs 16 bit).
11. System/Host System Type (UNIX/VAX/VMS/PC/NT, and so on)
12. Error message received, if any
13. Is the problem repeatable?
14. What are the steps to reproduce the problem?
15. What was being done when the problem occurred?