>Hilmar
>
>It worked as I expected, but I want to understand something...
>
>If I use Acopy( ), Im creating a copy from the first Array just with another name.
>
>Why cant I pass by reference to another form just the first array (form property)
>
>Like: DO FORM FORM2 WITH @ThisForm.aMyArray to lcReturn
>I tryed this in VFP 7.0 and it returned to me Sintax Error message.
Pressummably, the @ combined with the point is confusing syntax for VFP.
Now, the DO command (for a PRG) passes information by reference anyway. I am not sure how it works with a form.
Try:
DO FORM FORM2 WITH ThisForm.aMyArray, and see whether it works.
In FORM2, you would have to copy it to an array property anyway, I believe; parameters aren't available after Init() finishes.
Copying large arrays, of course, is inneficient, and this is probably what worries you.
You can avoid copying parameters altogether by passing a single parameter for the form.
do form FORM2 with ThisForm.
lParameters toParentForm
This.oParentForm = toParentForm
wait window transform(ThisForm.oParentForm.aMyArray(5) timeout 1
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)