ITEM_ADD

ITEM_ADD N,T

ADDS THE ITEM T TO THE SYSTEM OBJECT NUMBER N

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

ACTION

The command ITEM_ADD N,T adds the text T as line (item) to the system object designated by its number N.

Each line (item) is added after the last line (at the end) of the system object.

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

SYNTAX: ITEM_ADD N,T

  • 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.
  • T = text to be added in the system object.

USE

  • The command ITEM_ADD is used to add a line to 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 text T is not a correct expression.

EXAMPLE

rem create a LIST

list 1

rem fill the LIST with 3 lines

item_add 1,"This is line 1"

item_add 1,"This is line 2"

item_add 1,"This is line 3"

SEE ALSO

MEMO

MEMO_RICH

COMBO

LIST

DLIST

SYNEDIT

FILE_ADD

ITEM_INSERT

ITEM_DELETE

ITEM_SELECT

COUNT()

ITEM_READ$()

ITEM_INDEX$()

ITEM_INDEX()