InfoConnect for Unisys VBA Guide
GetFieldText Function (T27Screen)
The row number at the beginning of, or within, the field.
The column number at the beginning of, or within, the field.
Gets the text of the field that the specified row and column are part of. Use Row and Column parameters to identify the field that you want to get text from. Coordinates are based on 1,1 for the upper-left corner of the terminal window (as they appear on the status line if you move the cursor to the field you want to retrieve). The coordinates can be located anywhere within the field.
Syntax
object.GetFieldText( _
   ByVal row As Long, _
   ByVal column As Long _
) As String

Parameters

row
The row number at the beginning of, or within, the field.
column
The column number at the beginning of, or within, the field.

Return Value

The field contents.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException This exception is thrown if the row or column parameters are outside the range of valid values: (1 to Rows) or (1 to Columns).
Example
This procedure displays the first 10 characters of a field in row 1 that includes column 40.
Sub GetFieldTextExample()
    Dim text As String
    text = ThisT27Screen.GetFieldText(1, 40)
    MsgBox text, , "Field Text"
End Sub
See Also

 

 


2015 Attachmate

Send Feedback