for(var i=0; i<Boxes.length; i++) {
Boxes[i].SetTextColor(...);
}
//2)
for(var i in Boxes) {
Boxes[i].SetTextColor(...);
}
//3)
Boxes.forEach( function(box, index, array) {
box.SetTextColor(...);
});
function UserSelect( ev ) {
this.SetText("touched"); //'this' works in most cases in callback functions
ev.source.SetText("touched"); //haven't seen that before but this works here too. But you need the 'source' property
}
Hi alex,
You were up late (or maybe not in UK)?
Your 1st suggestion didn't work, but the 2nd does, ie this works:
function UserSelect( ev )
{
var BoxNumber = ev.source.Test:
}
That gives the correct BoxNumber for the textbox touched.
Thanks for your help, I would not have figured that out. Cheers!