RETURNS 1 IF THE SYSTEM OBJECT NUMBER N IS ACTIVE, 0 OTHERWISE
ACTION
The function ACTIVE(N) returns 1 if the system object designated by its number N is active.
By default, the state of a system object is "active". A system object can be made inactive by the command INACTIVE and made active again by the command ACTIVE.
A TIMER is active by default or after the command TIMER_ON. A TIMER is inactive after the command TIMER_OFF.
Remark 1: Another function INACTIVE(N) returns 1 if the system object designated by its number N is inactive.
Remark 2: The system objects of type : MAIN_MENU, SOUND, OPEN_DIALOG, SAVE_DIALOG, DLIST, MAIN_MENU_POP, OPEN_DIALOG_PIC, SAVE_DIALOG_PIC, SERIAL, IMAGE cannot be activated. The functions ACTIVE(N) or INACTIVE(N) trigger an error if applied to these system objects.
SYNTAX:
Result=ACTIVE(N)
USE ERROR EXAMPLE
rem create a BUTTON
button 1
rem print its activity state
print
print
print active(1)
print inactive(1)
ACTIVE()
ACTIVE(N)
SEE ALSO
ACTIVE
INACTIVE
INACTIVE()