SHOW()

SHOW(N)

RETURNS 1 IF THE SYSTEM OBJECT NUMBER N IS VISIBLE, 0 OTHERWISE

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

ACTION

The function SHOW(N) returns 1 if the system object designated by its number N is visible.

By default, the state of a system object is "visible". A system object can be hidden by the command HIDE and made visible again by the command SHOW.

Remark 1: Another function HIDE(N) returns 1 if the system object designated by its number N is hidden.

Remark 2: The function cannot be called for the system objects : MAIN_MENU, SUB_MENU, SOUND, OPEN_DIALOG, SAVE_DIALOG, DLIST, TIMER, MAIN_MENU_POP, OPEN_DIALOG_PIC, SAVE_DIALOG_PIC, SERIAL, IMAGE, TAB. The functions HIDE(N) or SHOW(N) trigger an error if applied to these system objects.

SYNTAX: Result=SHOW(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 SHOW() is used to know if a system object is visible.

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 the object number N is of type : MAIN_MENU, SUB_MENU, SOUND, OPEN_DIALOG, SAVE_DIALOG, DLIST, TIMER, MAIN_MENU_POP, OPEN_DIALOG_PIC, SAVE_DIALOG_PIC, SERIAL, IMAGE, TAB.

EXAMPLE

rem create a BUTTON

button 1

rem print its visibility state

print

print

print hide(1)

print show(1)

SEE ALSO

HIDE

SHOW

HIDE()