SELECT_DELETE

SELECT_DELETE N

DELETES THE SELECTED TEXT IN THE SYSTEM OBJECT NUMBER N

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

ACTION

The command SELECT_DELETE N deletes the selected text in the system object number N.

The system object is an EDIT, MEMO, COMBO, SPIN, MEMO_RICH, SYNEDIT.

SYNTAX: SELECT_DELETE 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 SELECT_DELETE is used to delete the selected text in an EDIT, MEMO, COMBO, SPIN, MEMO_RICH, SYNEDIT.

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 object number N is not of type : EDIT, MEMO, COMBO, SPIN, MEMO_RICH, SYNEDIT.

EXAMPLE

rem create an EDIT

edit 1

rem display a text

text 1,"Hello world"

wait 1000

rem select 3 characters from the 2sd

select_text 1,2,3

rem delete the selected text

select_delete 1

SEE ALSO

EDIT

MEMO

COMBO

SPIN

MEMO_RICH

SYNEDIT

SELECT_TEXT

SELECT_READ$()