GetClipboard$

Clipboard management function.

The GetClipboard$ function returns the text contained in the Windows Clipboard.

Usage

The main use is to retrieve data from one application and then send them to another application using SendKeys.

Syntax

a$=GetClipboard$()

Parameters

None.

Return value

A string which holds the text contained in the Clipboard. If the Clipboard is empty or contains non-textual data, an empty string is returned. The returned string does not include any information about the text type, font size or attributes.

See also

SetClipboard

Example

 

a$=GetClipboard$()