>I can pass a reference of an array to my function using '@' sign (e.g. myfunction(@myarray)). When I tried the code 'myfunction(@THISFORM.myarray)', error message was prompt. Anyone know how to pass form's array?
>
>Thanks!
>
>Geoffrey
2 ways:
1) Copy the array and pass the copy, like so
WITH thisform
DIMENSION laPassArray(ALEN(.MyArray,1),ALEN(.MyArray,2))
ACOPY(.MyArray,laPassArray)
myfunction(@laPassArray)
ENDWITH
2) Pass a reference to the form itself, and let the function access the form property
myfunction(thisform)
Insanity: Doing the same thing over and over and expecting different results.