• m b
  • NEWBIE
  • 10 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
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!
  • February 21, 2014
  • Like
  • 0
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!
  • February 21, 2014
  • Like
  • 0