code:
if (event.eventType="oncellclick")
prompt="Clicked row: "+string(event.data.row)+". "
end // event.eventType="oncellclick"
hint: the equals-sign in the if isn’t legal - it is an assignment operator, not a comparison operator.
Trigger the event by clicking on a cell in a dataTable:
add a breakpoint:
- no error/warning in the debugger
- variables are all assigned
error does not trigger, script achieves, and mesage is displayed:
The only hint that there was a problem is that the row number is not included in the message.
This is what it SHOULD look like: