Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / HostField Object / ToString Method
Example
In This Topic
    ToString Method
    In This Topic
    Returns a string that includes the starting row, column, and length of the field and the text in the field.
    Syntax
    expression.ToString() As String
    where expression is a variable that represents a HostField Object
    Remarks
    Replaces characters up to the field length or the string length, whichever is lesser. If the string is shorter than the field, the remaining characters are padded with Unicode null.
    Example
    This example finds the first field on the screen and prints its row, column, length, and text.
    Sub FindAndPrintHostFieldValue()
     
        Dim hostfieldvar As HostField
        
        Set hostfieldvar = ThisIbmScreen.FindField1(1, 1, FindOption_Forward)
        
        Debug.Print hostfieldvar.toString
           
    End Sub
    See Also