Hi
It seems you are mixing call by reference and call by value. You might want to check the descriptions of both, e.g. here in wikipedia (subchapters 1.2 and 1.3)
HTH, RataIn reply to Re: Global variable unexpectedly modified when passed by reference
by Ratazong
in thread Global variable unexpectedly modified when passed by reference
by fshrewsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |