QTP, .NET, accessing .NET objects within QTP
after creating a .NET object using
Set foo = DotNetFactory("Some.Namespace.Foo",,...)
I want to call a function of foo which returns an array of .NET classes
I can do
arrayFromFoo = foo.GetArray()
but how can I now access the elements inside arrayFromFoo?
The debugger indeed recognizes it as an array
but I can't do
bar = arrayFromFoo(0)
because it is trying to store an object of ACustomDotNetType into a Visual Basic Script object.
Does anybody have any pointers, hints, experience with that?