INACTIVE

INACTIVE N

MAKES INACTIVE THE SYSTEM OBJECT NUMBER N

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

ACTION

The command INACTIVE N makes inactive the system object designated by its number N.

SYNTAX: INACTIVE 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 INACTIVE is used to make inactive a system object, for example to prevent to click on it or to use it.
  • The command INACTIVE and its inverse one ACTIVE are suitable to adapt a menu to an environment.

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 of type : MAIN_MENU, SOUND, OPEN_DIALOG, SAVE_DIALOG, DLIST, MAIN_MENU_POP, OPEN_DIALOG_PIC, SAVE_DIALOG_PIC, SERIAL, IMAGE.

EXAMPLE

rem create a BUTTON

button 1:caption 1,"button"

rem wait 1 second

wait 1000

rem make it inactive

inactive 1

rem wait 1 second

wait 1000

rem make it active again

active 1

SEE ALSO

ACTIVE