CLIPBOARD_COPY

CLIPBOARD_COPY N

COPY TO THE CLIPBOARD THE SELECTED TEXT OR THE PICTURE FROM THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameter: 1
  • Group: System

ACTION

The command CLIPBOARD_COPY N copies to the operating system clipboard the selected text of the system object number N (MEMO), or the picture from the system object number N (PICTURE ou IMAGE).

The system object is a MEMO, PICTURE, IMAGE.

SYNTAX: CLIPBOARD_COPY N

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.

USE

  • The command CLIPBOARD_COPY is used to copy a text from a MEMO or a picture from a PICTURE or an IMAGE to the system clipboard.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If number N is not the number of a MEMO, PICTURE, IMAGE.

EXAMPLE

label copy

memo 1:rem create a MEMO

memo 2:rem create a second one

top 2,100

item_add 1,"line 1":rem add it a line

caption 0,"select this line then clic on FORM0"

on_click 0,copy

end

copy:

clipboard_copy 1

clipboard_paste 2

caption 0,"copied to the second MEMO"

return

SEE ALSO

CLIPBOARD_CUT

CLIPBOARD_PASTE