Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FifteenWindows/OS Functions (continued)

ClipboardOpen Function

Overview

The ClipboardOpen function opens the clipboard and creates a Clipboard Object.

Syntax/Parameters

Syntax

handle = ClipboardOpen ( );

Parameters

(none)

Return Value

Returns a handle to a Clipboard Object or NULL_HANDLE on failure. Use the GetLastError function to retrieve error information.

Remarks

ClipboardOpen will open the clipboard and create a Clipboard Object without altering its contents. While most functions will automatically open and close the clipboard as necessary, opening the clipboard and holding the handle is more efficient for multiple operations while safeguarding the state of the clipboard so it cannot be altered by another program.

Once the clipboard is open, all functions that allow a handle to be specified will use the open handle unless a different handle is specified. The handle can be specified for clarity but the function will operate in the same manner.

Since only one program, thread or script can have the clipboard open, if this function is called without closing an existing handle, it will return the same handle. If another script or program has the clipboard locked, an error will be returned.

Scripts should not hold the clipboard open any longer than necessary since no other application can access the clipboard until it is closed. Further, only one Clipboard Object may be open at any given time.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic