CLIPFROMSTR Verb - Copy String to Clipboard

Syntax

CLIPFROMSTR fmt,str$[,ERR=lineref]

Description

For BBj-specific information, see the Clipboard Verbs and Functions.

The CLIPFROMSTR verb writes an application's string to the clipboard in the fmt-parameter-specified clipboard format. If the clipboard is being written to for the first time after CLIPLOCK is executed, CLIPFROMSTR clears the clipboard. For formats 1 (text) and 7 (OEM text), each line should be terminated by $0D0A. If the string does not have a null terminator, it is automatically added. If data is posted in either format 1 or 7, the missing format is supplied by Windows when CLIPUNLOCK is executed.

Parameter

Description

fmt

An unsigned integer that represents a clipboard format registered by CLIPREGFORMAT().

str$

String contained in an application.

ERR=lineref

Branch to be taken if an error occurs during execution.

See Also

CLIPCLEAR

CLIPFROMFILE

CLIPISFORMAT

CLIPLOCK

CLIPREGFORMAT

CLIPTOFILE

CLIPTOSTR

CLIPUNLOCK

Verbs - Alphabetical Listing