CLIPBOARD_CUT

CLIPBOARD_CUT N

COPY TO THE CLIPBOARD THEN CLEAR THE SELECTED TEXT OF THE SYSTEM OBJECT NUMBER N (MEMO)

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

ACTION

The command CLIPBOARD_CUT N copies to the operating system clipboard the selected text of the system object number N, then clear the selected text.

The system object is a MEMO.

SYNTAX: CLIPBOARD_CUT 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_CUT is used to copy and clear a text from a MEMO 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.

EXAMPLE

label cut

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,cut

end

cut:

clipboard_cut 1

clipboard_paste 2

caption 0,"copied to the second MEMO"

return

SEE ALSO

CLIPBOARD_COPY

CLIPBOARD_PASTE