OBJECT_EXISTS()

OBJECT_EXISTS(N)

RETURNS 1 IF THE SYSTEM OBJECT NUMBER N EXISTS, 0 OTHERWISE

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

ACTION

The fonction OBJECT_EXISTS(N) returns 1 the system object number N exists and 0 otherwise.

SYNTAX: Result=OBJECT_EXISTS(N)

  • N = system object number (integer or real).

USE

  • The function OBJECT_EXISTS() is used to know if a system object exists.

ERROR

  • If number N is not a correct expression.

EXAMPLE

rem create a button object

button 1

rem test if it exists

if object_exists(1)=1 then caption 0,"the object exists"

SEE ALSO

ALPHA

BUTTON

CHECK

COMBO

CONTAINER

CONTAINER_OPTION

DLIST

EDIT

FORM

GRID

IMAGE

LIST

MAIN_MENU

MEMO

MOVIE

OPEN_DIALOG

OPTION

PICTURE

PROGRESS_BAR

SAVE_DIALOG

SCENE2D

SCENE3D

SCROLL_BAR

SOUND

SPIN

SUB_MENU

TIMER

TRACK_BAR