I donβt quite understand why, but you can create sub as
Public Sub DoErase (byRef Ary) Erase Ary End Sub
in the library and call it from the action as follows:
DoErase StrVerifyAry
and it works.
Update: No, it is not. The array is successfully passed to DoErase , and the DoErase call works fine, but after that the test can still refer to the elements of the array that Erase should have erased.
If the test declares an array, it works fine ( Erase erases the elements).
This is very strange and probably related to bizarre areas in function libraries.
Please let us know if you ever find out what is going on here ...
source share