Hi,
I Solved the problem with "aclone()"
[CODE]
FUNCTION MAIN
local aVar1 := { 1, 2, 3 }
local aVar2
aVar2 := aclone( avar1 )
aVar2[1] := 5
? aVar1[1] && Now return 1
? aVar1[2]
? aVar1[3]
RETURN NIL
[ENDCODE]
Best Regards,
Rossine.
--
View this message in context:
http://www.nabble.com/Why-array-is-passed-by-reference--tp23745159p23745737.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour