Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FifteenWindows/OS Functions (continued)

ClipboardGetData Function

Overview

The ClipboardGetData function retrieves the specified clipboard format and copies it into a returned Data Object.

Syntax/Parameters

Syntax

handle = ClipboardGetData ( [handle hClipboard], dword format | string code );

Parameters

hClipboard

An optional handle specifying an open Clipboard Object. If a handle is not specified, or specified as NULL_HANDLE, the default clipboard is open. If a Clipboard Object is open, it is automatically selected, and, if no object is open, a new object is opened and then closed upon completion of the function.

format   code

A dword as a clipboard format code or a string representation of a format name or code. See the list of types and codes defined in Section 15.5 Clipboard Functions.

Return Value

Returns a handle to a Data Object or a NULL_HANDLE on failure. Use the GetLastError function to retrieve error information. The handle should be released with the CloseHandle function.

Remarks

Any format can be specified and the function will load a direct copy of the binary data into a Data Object and return a handle the resulting object. The object descriptor will be the clipboard format name.

A set of ‘get’ functions (see Related Functions below) can be used to access the content of binary data or retrieve string data.

Related Functions

Platform Support

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

Legato IDE, Legato Basic