How do I set an array variable to a function?
Here is a sample of my code:
Dim testWS as new clsws_activeinsurance
Dim temp() as struct_mapitem
temp() = testWS.wsm_activeinsurance("MC12345","UUID")
The function is supposed to bring back a two-dimensional array. How do I set
my variable for this array?
The function that I am calling is a web service from www.carrier411.com. I
cannot seem to get the dimensions of the array correctly.
Please help!!!
Thanks,
Lou
Alex Dybenko - 18 Jul 2007 11:49 GMT
hi,
you can try to get a variant-type variable first and then assign array-type
variable to it
try to search for array at www.freevbcode.com

Signature
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
> How do I set an array variable to a function?
> Here is a sample of my code:
[quoted text clipped - 13 lines]
> Thanks,
> Lou
pietlinden@hotmail.com - 19 Jul 2007 03:26 GMT
> How do I set an array variable to a function?
> Here is a sample of my code:
[quoted text clipped - 13 lines]
> Thanks,
> Lou
use a variant.
dim varMyArray as variant
varMyArray = SomeFunctionThatReturnsAnArray()