CLEAR

CLEAR N

CLEARS THE CONTENT OF THE SYSTEM OBJECT NUMBER N

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

ACTION

The command CLEAR N clears the content of the system object designated by its number N.

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

SYNTAX: CLEAR 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 CLEAR is used to clear a MEMO, COMBO, LIST, MEMO_RICH, DLIST, HVIEWER, 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 system object number N is not of the type : MEMO, COMBO, LIST, MEMO_RICH, DLIST, HVIEWER, SYNEDIT.

EXAMPLE

rem create a MEMO

memo 1

rem fill it with a line

item_add 1,"Hello !"

rem wait 1 second

wait 1000

rem clear its content

clear 1

SEE ALSO

MEMO

COMBO

LIST

MEMO_RICH

DLIST

HVIEWER

SYNEDIT