Reflection Desktop VBA Guide
Attachmate.Reflection.Objects Library / Attachmate.Reflection.Objects.Productivity Library / Productivity Object / ScratchPadContents Property
Example
In This Topic
    ScratchPadContents Property
    In This Topic
    Gets or sets the contents of the Scratch Pad.
    Syntax
    expression.ScratchPadContents As String
    where expression is a variable that represents a Productivity Object
    Remarks
    Scratch Pad accepts both text strings and Rich Text Format (RTF) strings.

    To empty the Scratch Pad contents, pass in an empty string. (Do not pass in Nothing.)

    Example
    This sample writes content to the Scratch Pad and then retrieves it in Rich Text Format and as plain text.
    Sub GetContentFromScratchpad()
       
        Dim contents As String
       
        'Load some content into the scratch pad
        ThisIbmTerminal.Productivity.ScratchPadContents = "Some text"
       
        'Retrieve the content in rich text format
        contents = ThisIbmTerminal.Productivity.ScratchPadContents
        Debug.Print "Rich text format: " + contents
       
        'Now retreive the content as plain text
        contents = ThisIbmTerminal.Productivity.ScratchPadContentsAsText
        Debug.Print "Plain text format: " + contents
       
    End Sub
    See Also