Enumerator library reference
Below is a summary of the Enumerator Library Reference available for .NET in HostFront 5.0
Table 2: HostFront .NET enumerator library
Enumerator name Associated values
ArabicFlag
AdjustDate
FlipHostData
FlipScreen
None
CGIModule
Default
Exe
ISAPI
ConnectionType
Http
None
Tcp
Emulation
Default
HFA5250
HFM3270
FieldEditFlag
AlphaNumeric
AlphaOnly
AutoEnter
DigitOnly
Empty
FieldExit
MandatoryEnter
NumericOnly
SignedNumeric
UpperCase
FieldStatusFlag Underlined
Key Values
Language Host Code Pages
Trim Options
NoTrim
Trim
TrimEnd
TrimStart
ArabicFlags enumerator
Describes the Arabic data format.
Prototype
public enum ArabicFlags:System.Enum.
Properties
FlipHostData: Flip the host data
AdjustDate: View the date an alternate way
FlipScreen: Flip the host screen (for use with 3270 right-to-left flipped applications)
None: Empty content
Values
The following values are associated with the ArabicFlags enumerator.
AdjustDate
Describes the Arabic date format: yyyy/mm/dd
FlipHostData
Flips the data coming from the Host.
FlipScreen
Flips the screen of the host. To be used with 3270 right-to-left flipped applications.
None
Implies that the date was neither adjusted nor flipped.
CGIModule enumerator
Describes the list of CGI modules to call depending on the HostFront emulation type being called.
Prototype
public enum CGIModule
Properties
ISAPI: Calls into the HFCGI_5250 or HFCGI_3270 ISAPI DLL, depending on the emulation type specified.
Note
To be used with Microsoft IIS server only.
EXE: Calls into the HFCGI_5250 or the HFCGI_3270 EXE, depending on the emulation type specified.
DEFAULT: Use the default module (for version prior to 3.6.0)
Values
The following values are associated with the CGIModule enumerator.
Default
Calls into the standard CGI executable.
Exe
Calls into the standard CGI executable (hfcgi.exe).
ISAPI
Calls into the IPSAI DLL (For IIS WEB servers only).
ConnectionType enumerator
Describes the connection type (i.e., Http or Tcp) to HostFront Server.
Values
The following values are associated with the ConnectionType enumerator.
HTTP
The connection to HostFront Server is Http.
Prototype
public const HostFront.EAI.ConnectionType Http
Member of HostFront.EAI.ConnectionType
None
No connection to HostFront Server has been defined.
Prototype
public const HostFront.EAI.ConnectionType None
Member of HostFront.EAI.ConnectionType
TCP
The connection to HostFront Server is Tcp
Prototype
public const HostFront.EAI.ConnectionType Tcp
Member of HostFront.EAI.ConnectionType
Emulation enumerator
Describes the type of emulation (5250 or 3270).
Values
The following values are associated with the Emulation enumerator.
Default
Uses the default emulations running on the HostFront Server (for version before 4.0 only).
HFA5250
The emulation is 5250 for a connection with a AS/400 host.
HFM3270
The emulation is 3270 for a connection with a mainframe.
FieldEditFlags enumerator
Describes the edit flags of a field.
Values
The following values are associated with the FieldEditFlag enumerator.
AlphaNumeric
Indicates that the field contains alpha and numeric characters.
Prototype
public const HostFront.EAI.FieldEditFlags AlphaNumeric
Member of HostFront.EAI.FieldEditFlags
AlphaOnly
Indicates that the field contains only alpha characters.
Prototype
public const HostFront.EAI.FieldEditFlags AlphaOnly
Member of HostFront.EAI.FieldEditFlags
AutoEnter
Indicates that the field has auto enter capabilities. An Enter key is issued on the host once field data has been entered.
Prototype
public const HostFront.EAI.FieldEditFlags AutoEnter
Member of HostFront.EAI.FieldEditFlags
DigitOnly
Indicates that the field contains only digit characters.
Prototype
public const HostFront.EAI.FieldEditFlags DigitOnly
Member of HostFront.EAI.FieldEditFlags
Empty
Indicates that the contents is empty.
Prototype
public const HostFront.EAI.FieldEditFlags Empty
Member of HostFront.EAI.FieldEditFlags
FieldExit
Indicates that the field has field exit capabilities. A Tab key is issued on the host once field data has been entered.
Prototype
public const HostFront.EAI.FieldEditFlags FieldExit
Member of HostFront.EAI.FieldEditFlags
MandatoryEnter
Indicates that the field is mandatory.
Prototype
public const HostFront.EAI.FieldEditFlags MandatoryEnter
Member of HostFront.EAI.FieldEditFlags
NumericOnly
Indicates that the field contains only numeric characters.
Prototype
public const HostFront.EAI.FieldEditFlags NumericOnly
Member of HostFront.EAI.FieldEditFlags
SignedNumeric
Indicates that the field can only contain numeric and the sign characters.
Prototype
public const HostFront.EAI.FieldEditFlags SignedNumeric
Member of HostFront.EAI.FieldEditFlags
UpperCase
Indicates that the field is upper case.
Prototype
public const HostFront.EAI.FieldEditFlags UpperCase
Member of HostFront.EAI.FieldEditFlags
FieldStatusFlags enumerator
Describes the status flags of a field.
Values
The following value is associated with the FieldStatusFlag enumerator.
Underlined
Indicates that the field is underlined
Prototype
public const HostFront.EAI.FieldStatusFlags Underlined
Member of HostFront.EAI.FieldStatusFlags
Key enumerator
Describes all host keys and their corresponding values.
Prototype
public const HostFront.EAI.Key Attention
Member of HostFront.EAI.Key
Table 3: Host key values
Key Key value
Attention 33281
Clear 32775
Duplicate 33346
Enter 32778
EraseEndOfLine 33286
EraseInput 33284
FieldExit 33372
FieldMinus 33374
FieldPlus 33373
PA1 32769
PA2 32770
PA3 32771
PageDown 33360
PageUp 33359
PF1 32800
PF2 32801
PF3 32802
PF4 32803
PF5 32804
PF6 32805
PF7 32806
PF8 32807
PF9 32808
PF10 32809
PF11 32810
PF12 32811
PF13 32812
PF14 32813
PF15 32814
PF16 32815
PF17 32816
PF18 32817
PF19 32818
PF20 32819
PF21 32820
PF22 32821
PF23 32822
PF24 32823
Reset 33290
SystemRequest 32776
TestRequest 32777
Language enumerator
Provides language support for all HostFront supported Languages
Prototype
public enum Language: System.Enum
Table 4: Host code pages
Language Host code page
Neutral EBCDIC037
Italian EBCDIC280
French Canadian EBCDIC500
Multinational EBCDIC500
English UK EBCDIC285
French France EBCDIC297
Danish EBCDIC277
Finnish EBCDIC278
Norwegian EBCDIC277
Spanish EBCDIC284
Spanish Speak EBCDIC284
Portuguese EBCDIC037
Swedish EBCDIC278
English US EBCDIC037
Arabic EBCDIC420
Italian Euro EBCDIC1144-Eurosupport
French Canadian Euro EBCDIC1148-Eurosupport
Multinational Euro EBCDIC1148-Eurosupport
English UK Euro EBCDIC1146-Eurosupport
French France Euro EBCDIC1147-Eurosupport
Danish Euro EBCDIC1142-Eurosupport
Finnish Euro EBCDIC1143-Eurosupport
German Euro EBCDIC1141-Eurosupport
Norwegian Euro EBCDIC1142-Eurosupport
Spanish Euro EBCDIC1145-Eurosupport
Spanish Speak Euro EBCDIC1145-Eurosupport
Portuguese Euro EBCDIC1140-Eurosupport
Swedish Euro EBCDIC1143-Eurosupport
English USEuro EBCDIC1140-Eurosupport
English US1047 EBCDIC1047
TrimOptions enumerator
Provides trimming options for the GetFeild methods.
It has four values:
•  NoTrim (= 3)
•  Trim (= 0)
•  TrimEnd (= 1)
•  Trim Start (= 2)