SQABasic Array / Object Array
Having some trouble with a Long array which I've not encountered before...
Dim myArray() as Long
Dim myExternalAPI As Object
When I do this via SQABasic in Robot the compile fails because it wants an Object ... "Type mismatch, parameter 1 in function 'setmyMethod' Object required "
If I try to get around this by passing in an Object Array I can compile OK, but of course the test fails at runtime.
Also, if I do the same thing using VBA in Excel it works fine, but I need to test via Robot!
Why the difference between SQABasic and VBA?
Any ideas gratefully received
Re: SQABasic Array / Object Array
It seems the scripting in the robot does not understand the setting of the method... you can try this:
Set myExternalAPI.setmyMethod() = myArray()
One of these should work