"toggleState"

This function specifies the state of a toggle button.

Synopsis

setValue(string shape, "toggleState", bool);

shape.toggleState(bool);

Parameter

Parameter Description
shape Name of the object
bool

TRUE = The state of the button is ON.

FALSE = The state of the button is OFF.

Description

This function specifies the state of a toggle button.

Example

The following example sets the state of a button to ON.

main()
{
  this.toggleState= TRUE;
}

Assignment

Button