CLIPBOARD_PASTE

CLIPBOARD_PASTE N

PASTES THE TEXT OR THE PICTURE FROM THE CLIPBOARD TO THE SYSTEM OBJECT NUMBER N

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

ACTION

The command CLIPBOARD_PASTE N copies the text or the picture present in the operating system clipboard to the system object number N (paste).

The system object is a MEMO, PICTURE, IMAGE.

SYNTAX: CLIPBOARD_PASTE 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_PASTE is used to copy a text from the system clipboard to a MEMO or a picture from the system clipboard to a PICTURE or an IMAGE.

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_COPY

CLIPBOARD_CUT