"text"

Sets the text in the n-th check box option or reads it.

Synopsis

setValue(string shape, "text", int n, string label);

shape.text(int n, string label);

Parameters

Parameter Description
shape Name of the object
n Box index, starting with 0
label New text

Description

The text for the "n"-th option of a check box can be set or read with this attribute.

Anmerkung: To add an "&" character to the text, the notation "&&" must be used. A single "&" will add an underline to the following character.

Example

In this example, the text of the first item (index 0) of the "CHECK_BOX1" will be set to "Test".

main()
{
  CHECK_BOX1.text(0)="Test";
}

Figure: A Check Box

Reads the first and second option of a check box.

main()
{
  DebugN(CHECK_BOX1.text(0));
  DebugN(CHECK_BOX1.text(1));
}

Assignment

Check box