Avatar

Level 10

Hi,

I would pass the object that called the function and then work from there within the function.

script_object.deletetheRow(this);

Then the function

function deletetheRow(oObject) {

     oObject.parent.parent._item.removeInstance(oObject.parent.index);

}

Niall