CHECKED()

CHECKED(N)

RETURNS THE STATE OF THE SYSTEM OBJECT NUMBER N (CHECKED/ACTIVATED)

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

ACTION

The function CHECKED(N) returns 1 if the system object designated by its number N is checked for a CHECK or an OPTION, or activated for a TAB, and returns 0 if the system object is not checked or not activated.

The system object N is an OPTION, a CHECK or a TAB.

SYNTAX: Result=CHECKED(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 function CHECKED() is used to know if the system object is checked or activated by the user.

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 the system object number N does not exist.
  • If number N is not the number of : OPTION, CHECK, TAB.

EXAMPLE

rem create an OPTION

option 1

rem print its state : 0 or 1

print

print

print checked(1)

SEE ALSO

OPTION

CHECK

TAB