DELETE

DELETE N

DELETES THE SYSTEM OBJECT NUMBER N

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

ACTION

The command DELETE N deletes the system object designated by its number N.

The number N is free and can be reused.

If the system object is a SCENE3D or a FORM, all the system objects inside are deleted also.

If the system object is a TARGET for 2D drawing, for printing or for command, it is FORBIDEN to delete it : change the targeted system object before deletion with the command 2D_TARGET_IS.

It is forbidden to delete FORM0. For FORM0 : use HIDE, but not DELETE.

SYNTAX: 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 DELETE is used to delete a system object.

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 N=0 (it is prohibited to delete FORM0).
  • If number N is the number of a TARGET system object for commands, for 2D drawing or for printing.

EXAMPLE

rem create a BUTTON

button 1

rem wait 1 second

wait 1000

rem delete it

delete 1

SEE ALSO

-