method getRowOfBox

int32 getRowOfBox(box box);

Argumente

Zurückgegebener Wert

This method returns a row index for the box provided by the caller. If the row is not found in this select box, then -1 is returned.
var selBox = scene.getBoxById("myListBox");
if (selBox)
{
    var theBox = scene.getBoxById("integratedBox");
    if (theBox)
    {
        var rowOfBox = selBox.getRowOfBox(theBox);
        if (rowOfBox != -1)
        {
            // process data here
        }
    }
}