Reflection Desktop VBA Guide
Attachmate.Reflection.Objects Library / Attachmate.Reflection.Objects.Productivity Library / Productivity Object / ScratchPadSaveAs Method
The full path of the file to save the Scratch Pad contents to.
Example
In This Topic
    ScratchPadSaveAs Method
    In This Topic
    Saves Scratch Pad contents to the specified file.
    Syntax
    expression.ScratchPadSaveAs( _
       ByVal filePath As String _
    ) As ReturnCode
    where expression is a variable that represents a Productivity Object

    Parameters

    filePath
    The full path of the file to save the Scratch Pad contents to.

    Return Value

    Returns one of the following ReturnCode values:
    Member Description
    Cancelled Cancelled.
    Error Error.
    PermissionRequired Permission is required.
    Success Success.
    Timeout Timeout condition.
    Truncated The text is truncated.
    Remarks
    If filePath exists, the file is overwritten.
    Example
    This example saves the contents of the Scratch Pad to a file.
    Sub SaveTheScratchPad()
     
        Dim path As String
        
        path = Environ("USERPROFILE") & "\Documents\Micro Focus\Reflection\" & "ScratchpadTest.rtf"
            
        ThisIbmTerminal.Productivity.ScratchPadSaveAs (path)
        
    End Sub
    See Also