InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Screen Object / Copy Method
Example
In This Topic
    Copy Method (Screen)
    In This Topic
    Copies ASCII text data to the Clipboard.
    Syntax
    expression.Copy() 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 sample copies all the text on a screen to the clipboard. You can test it by runninng it and then pasting the text in the clipboard into a text editor.
    Sub CopyScreen()
     
        'Select all the text
        ThisScreen.SelectAll
        
        'Copy the selected text to the clipboard
        ThisScreen.Copy
       
     
    End Sub
    See Also