InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.UTS Library / UtsScreen Object / GetFieldText Method
The row number at the beginning of, or within, the field.
The column number at the beginning of, or within, the field.
Example
In This Topic
    GetFieldText Method (UtsScreen)
    In This Topic
    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
    expression.GetFieldText( _
       ByVal row As Integer, _
       ByVal column As Integer _
    ) As String
    where expression is a variable that represents a UtsScreen Object

    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
    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 = ThisUtsScreen.GetFieldText(1, 40)
        MsgBox text, , "Field Text"
    End Sub
    See Also