"Variant" arrays? (JScript v. VBScript, LDAP, ADSI, ASP)
Posted on 2001-08-16
Okay... I'm using ADSI to access an LDAP server using JScript, but I can't actually access any of the data in the returned ResultSet because it is all of type "adVariant" (as defined in adojavas.inc). Using IsArray in VBScript returns true, and I can use it as an array with the correct results there, but I'd like to be able to access it with JScript.
I tried the built-in "VBArray" object - e.g.
var temp=new VBArray(RS.Fields(0));
but it didn't work - it gave me the error "VBArray expected".