CLIPBOARD (statement) - QB64 Wiki

CLIPBOARD (statement)

From QB64 Wiki

Jump to: navigation, search

The _CLIPBOARD$ statement sets and overwrites the STRING value in the system clipboard.


Syntax:

_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:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Personal tools