06-01-2010 08:39 AM
Thank you very much for sharing this!
I'm running this in VBScript successfully to the point of returning the array. I can validate the array and confirm the number of records (UBound), but am unable to return specific records "arrUsers(12)". I continue to recieve a type-mismatch error.
Forgive me if I'm overlooking something obvious.
06-01-2010 11:36 AM
What does the code look like where you are making this call?
Also, should arrUsers(12) instead be arrUsers (I'm a litttle rusty in VBScript)?
What is the variable type you are assigning this to?
06-01-2010 02:27 PM
It appears that the function returns a vartype 8200 (string array) and VBScript only supports vartype 8204 (variant array). I built it as a console app in VB.Net without further incident.