Hello,
I have a COM object that returns a variant bstr array.
The array has 0-5 elements...
In VBScript:
ccys=wssrpc.GetCurrencies("DIV47")
MsgBox TypeName(ccys)
MsgBox TypeName(ccys(1))
The first type name produces String() as expected.
The second throws a type mistmatch error.
Why is this? I tried it in VB and it worked OK? Am I
forced to write this as a pair like this...
num=wssrpc.GetNumCurrencies("DIV47")
for x=0 to num - 1
MsgBox wssrpc.GetCurrency(x)
next
Thankyou..
Matt