Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Screen Object / ClearScreen Method
Example
In This Topic
    ClearScreen Method
    In This Topic
    Clears the current screen in display memory.
    Syntax
    expression.ClearScreen() As ReturnCode
    where expression is a variable that represents a Screen Object

    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 clears the screen in display memory.
    Sub ClearTheScreen()
        
        Dim rcode As ReturnCode
        
        rcode = ThisScreen.ClearScreen
        
    End Sub
    See Also