"registerIndex"

Allows to query the index of a tab by using the name. (Read only)

Synopsis

getValue(string shape, "registerIndex", string name, int &index);

shape.registerIndex(string name, int &index);

Parameter

Parameter Description
shape Name of the object
name Name of the tab which index shall be queried.
index Index that is returned.

Description

With stating the name of the tab it is possible to get the tab index.

Example

Following example queries the index of the "Tab1" and prints it to the LogViewer.

main()
{
  int i;
  reg.registerIndex("Tab1", i);
  DebugN(i);
}

Assignment

Tab