"nextSibling";

Returns the ID and type of the sibling (the next element on the same level as the defined item (itemID).

Synopsis

getValue(string shape, "nextSibling", string itemID, string &SiblingID, int &type);

shape.nextSibling(string itemID, string &SiblingID, int &type);

Parameters

Parameter Description
shape Name of the object
itemID ID of the item whose sibling ID should be returned
SiblingID The returned ID of the sub element
type The type of the sub element

Description

Returns the ID and type of the sibling (the next element on the same level as the defined item (itemID).

Example

The following example returns the ID and type for the sibling of the item with ID number 6.

main()
{
  string obj = "CASCADE_BUTTON1";
  string itemID = "6";
  string schID;
  int tp;
  getValue(obj,"nextSibling",itemID,schID,tp);
  DebugN("Item ID", itemID, "Sibling ID", schID,"Sibling type", tp);
}

Assignment

Cascade