Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Screen Object / DisplayText Method
The string to display.
Example
In This Topic
    DisplayText Method
    In This Topic
    Displays a string in the terminal window as though it had been received from the host.
    Syntax
    expression.DisplayText( _
       ByVal text As String _
    ) As ReturnCode
    where expression is a variable that represents a Screen Object

    Parameters

    text
    The string to display.

    Return Value

    One of the following ReturnCode enumeration values.

    Member Description
    Cancelled Cancelled.
    Error Error.
    PermissionRequired Permission is required.
    Success Success.
    Timeout Timeout condition.
    Truncated The text is truncated.

    Example
    'This example displays text from the screen as if it came from the host
    Sub DisplayTextExample()
     
        Dim LF As String
        Dim CR As String
     
        LF = Chr(10)
        CR = Chr(13)
        
        ThisScreen.DisplayText "Hello" & CR & LF & "Goodbye"
        
    End Sub
    See Also