ITEM_DELETE

ITEM_DELETE N,L

DELETES THE ITEM AT LINE L OF THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: System Objects

ACTION

The command ITEM_DELETE N,L deletes the line (item) number L of the system object designated by its number N.

The system object is of type : MEMO, MEMO_RICH, COMBO, LIST, DLIST, SYNEDIT.

Remark: the first line has the number 1.

SYNTAX: ITEM_DELETE N,L

  • 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.
  • L = number of line (integer or real). Must be greater than 0. (1 is the first line)

USE

  • The command ITEM_DELETE is used to delete a line of an objet handling text.

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 the object number N is not of type : MEMO, MEMO_RICH, COMBO, LIST, DLIST, SYNEDIT.
  • If number L is not a correct expression.
  • If number L is less than 0.

EXAMPLE

rem create a LIST

list 1

rem fill the LIST with 2 lines

item_add 1,"This is line 1"

item_add 1,"This is line 2"

rem wait for 1 second

wait 1000

rem delete the line at second position

item_delete 1,2

SEE ALSO

MEMO

MEMO_RICH

COMBO

LIST

DLIST

SYNEDIT

FILE_ADD

ITEM_ADD

ITEM_INSERT

ITEM_SELECT

ITEM_READ$()

ITEM_INDEX$()

ITEM_INDEX()