The following constants are defined for use with many of the FlexTerm methods and properties:


FlexDirection

Direction used in searches such as FlexScreen.FindString.


Values:

FlexDirection.FORWARD

FlexDirection.BACKWARD


FlexPlane

Plane to get data in FlexScreen.GetData and FlexField.GetData methods.


Values:

FlexPlane.TEXT - Text displayed

FlexPlane.COLOR - Color of the text displayed

FlexPlane.FIELD - Field attributes

FlexPlane.EXTENDED - Field extended attributes


FlexFileType

Used in FlexSession.FTPSendFile and FlexSession.FTPReceiveFile to set the file type.


Values:

FlexFileType.TEXT

FlexFileType.BINARY


FlexColor

Used in comparing color values from FlexScreen.GetData and FlexField.GetData methods.


Values:

FlexColor.DEFAULT

FlexColor.BLUE

FlexColor.GREEN

FlexColor.CYAN

FlexColor.RED

FlexColor.MAGENTA

FlexColor.YELLOW

FlexColor.WHITE


FlexFieldAttribute

Used in comparing field attribute values from the FlexField.GetData method.

Values:

FlexFieldAttribute.ATTRIBUTE        

FlexFieldAttribute.PROTECTED        

FlexFieldAttribute.NUMERIC          

FlexFieldAttribute.PEN_SELECTABLE   

FlexFieldAttribute.HIGH_INTENSITY   

FlexFieldAttribute.HIDDEN           

FlexFieldAttribute.RESERVED         

FlexFieldAttribute.MODIFIED   


Example:

' Assume position 23, 15 is a field character

Data = FlexScreen.GetData(FlexScreen.Position(23,15),FlexScreen.Position(23,15), FlexPlane.FIELD)

If (Data(0) And FlexFieldAttribute.MODIFIED) = FlexFieldAttribute.MODIFIED Then

 MsgBox "Field is modified"

End if

   

Following methods provide another way to do the same thing:

FlexFieldAttribute.IsProtected(Data)

FlexFieldAttribute.IsNumeric(Data)

FlexFieldAttribute.IsPenSelectable(Data)

FlexFieldAttribute.IsHighIntensity(Data)

FlexFieldAttribute.IsHidden(Data)

FlexFieldAttribute.IsModified(Data)


Example:

' Assume position 23, 15 is a field character

Data = FlexScreen.GetData(FlexScreen.Position(23,15),FlexScreen.Position(23,15), FlexPlane.FIELD)

If FlexFieldAttribute.IsModified(Data(0)) Then

 MsgBox "Field is modified"

End If


FlexFieldExtended

Used in comparing extended field values from the FlexField.GetData method.


Values:

FlexFieldExtended.NORMAL

FlexFieldExtended.BLINK

FlexFieldExtended.REVERSEVIDEO

FlexFieldExtended.UNDERSCORE


Additional helper function from FlexFieldExtended:


FlexFieldExtended.GetHighLight(data)

Extract the highlight bits to use. This is provided since VBScript does not have bitwise shift operators.


Example:

Data = FlexScreen.Fields(40).GetData(FlexPlane.EXTENDED)

If FlexFieldExtended.GetHighLight(Data(5)) = FlexFieldExtended.BLINK then

 Msgbox "Blinking character"

Else

 Msgbox "Non-Blinking character"

End If


FlexFieldExtended.GetColor(data)

Extract the Color bits to use. This is provided since VBScript does not have bitwise shift operators.


Example:

If FlexFieldExtended.GetColor(Data(0)) = FlexColor.RED then

 Msgbox "Red color"

End If


FlexOiaInputInhibit

OIA input inhibit condition.


Values:

FlexOiaInputInhibit.NOTINHIBITED

FlexOiaInputInhibit.SYSTEM_WAIT

FlexOiaInputInhibit.COMMCHECK

FlexOiaInputInhibit.PROGCHECK

FlexOiaInputInhibit.MACHINECHECK

FlexOiaInputInhibit.OTHER


Example:

If FlexOIA.InputInhibit=FlexOiaInputInhibit.NOTINHIBITED Then
 Msgbox "Input not inhibited"
End If


FlexOiaOwner

OIA owner status.


Values:

FlexOiaOwner.UNKNOWN

FlexOiaOwner.APP

FlexOiaOwner.MYJOB

FlexOiaOwner.NVT

FlexOiaOwner.UNOWNED

FlexOiaOwner.SSCP


Example:

If FlexOIA.Owner=FlexOiaOwner.APP Then

 Msgbox "Host application connected"

End If


FlexKeepAliveSeqs

Set or enable one of the available Keep Alive sequences.


Values:

FlexKeepAliveSeqs.Disabled    
FlexKeepAliveSeqs.NOP        
FlexKeepAliveSeqs.TimingMark


Example:

FlexSession.ConnectionSettings.KeepAliveSeq = FlexKeepAliveSeqs.NOP


FlexOperatingModes  (VT only)

Set the VT operating mode.


Values:

FlexOperatingModes.VT400_7bit
FlexOperatingModes.VT400_8bit
FlexOperatingModes.VT100      
FlexOperatingModes.VT52

   

Example:

FlexSession.ConnectionSettings.OperatingMode = FlexOperatingModes.VT400_7bit


FlexNRCharsets  (VT only)

Set the National Replacement Character set.


Values:

FlexNRCharsets.UnitedStates

FlexNRCharsets.UnitedKingdom
FlexNRCharsets.Dutch
FlexNRCharsets.Finnish
FlexNRCharsets.French
FlexNRCharsets.FrenchCanadian
FlexNRCharsets.German
FlexNRCharsets.Italian
FlexNRCharsets.NorwegianDanish
FlexNRCharsets.Portuguese
FlexNRCharsets.Spanish
FlexNRCharsets.Swedish
FlexNRCharsets.Swiss


Example:

FlexSession.ConnectionSettings.NRCharset = FlexNRCharsets.UnitedKingdom