You need to sign in to do that
Don't have an account?
m b
Assign by value instead of reference
Hello,
I would like to know if there is a way to make assignment by value instead of reference.
For example, if I do
acct1.myField=5;
acct2.myField = acct1.myField;
acct1.myField=10;
If I do that, acct2.myField will be 10 in the end...WHat can I do to have acct2.myField keep the 5 vale?
Thanks!
I would like to know if there is a way to make assignment by value instead of reference.
For example, if I do
acct1.myField=5;
acct2.myField = acct1.myField;
acct1.myField=10;
If I do that, acct2.myField will be 10 in the end...WHat can I do to have acct2.myField keep the 5 vale?
Thanks!
All Answers