CLIPFROMFILE Verb - Copy File Data to Clipboard
Syntax
CLIPFROMFILE fmt,file$[,ERR=lineref]
Description
For BBj-specific information, see the Clipboard
Verbs and Functions.
The CLIPFROMFILE verb opens a file and copies the data 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, CLIPFROMFILE
clears the clipboard. If the format is a bitmap (format 8), Visual PRO/5
correctly retrieves the data from the bitmap before placing the format
on the clipboard. For all other formats (especially those preregistered
by Windows), the application must have created the file in a format appropriate
for the specified clipboard format. For formats 1 (text) and 7 (OEM text),
a null terminator is automatically added. An !ERROR=12
may occur if the specified file does not exist.
Parameter |
Description |
---|---|
fmt |
An integer that represents a clipboard format registered by CLIPREGFORMAT(). |
file$ |
File to be copied. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |