CLIPBOARD (statement)
From QB64 Wiki
The _CLIPBOARD$ statement sets and overwrites the STRING value in the system clipboard.
_CLIPBOARD$ = string_expression$
Description:
- string_expression$ is the string value sent to the clipboard.
- The string value will replace everything previously in the clipboard.
- Assemble long text into one string variable value before using this statement.
- Add CHR$(13) + CHR$(10) CRLF characters to move to a new clipboard line.
- When copying text files, end line CRLF characters 13 and 10 do not have to be added.
- NOTE: Repeated statements erase previous data! Combine data strings BEFORE placing them in the Clipboard.
Code Examples:
- Sets 2 lines of text in the clipboard using CRLF to end text lines
_CLIPBOARD$ = "This is line 1" + CHR$(13) + CHR$(10) + "This is line 2"
See also:
- _CLIPBOARD$ (function)
