I have an ActiveX component (which I did not write and have no control over). It has several methods I want to use, which return arrays. Every time I attempt to do something of the sort:
var arrayValue = axObj.methodWhichReturnsArray();
the arrayValue object is undefined. The component provider tells me that I should not be having any of the problems I'm describing. I do perform a null check which it passes (meaning the axObj is not null).
The component provider, however, is using JScript, not JavaScript, in his example, which goes something like
var arrayVar = axComponent.getListAsArray();
var theArray = (new VBArray(arrayVar)).toArray();
alert(theArray[0]);
alert(theArray[1]);
alert(theArray[2]);
But again, I am using JavaScript (and have never used JScript) so am not sure of what the difference is...
(And I am a weathered Java veteran, so all of it is frustrating.)
Thank you!