Hi Babu,
That is great! It is exactly the kind of functionality I was hoping would be available in BIAL.
In fact, your code opens up another very interesting thing - the ability to retrieve an element from an array by specifying its index, rather than looping through it (which the doco says is the only way to do it). For example...
var myArray = ["Hello", "World"];
APPLICATION.alert(myArray[1]);
...works just fine! No loop required here.
Reiner - this sort of thing would be incredibly useful. It reduces code, makes scripts more readable (and might be better for performance).
Is it possible for this to become "supported", or at least a "feature" and not a bug?
Regards, Pat