ChrisParks
Technical User
all
i am declaring two objects with diff names, lets say obj1 and obj2 equal to new ObjectTest objects
i first define all the characteristics of obj1 based on objecttest class characteristics
then i want to set obj2 = obj1 but subsequently manipulate the characteristics of obj2
when i do this, for example
set obj2.NumberValue = obj1.NumberValue - 1
assuming obj1.NumberValue = 20
it will then set obj2.NumberValue = 19. but it ALSO changes Obj1.NumberValue = 19 as well which i do not want. i want to maintaing obj1.numbervalue at 20
this makes no sense to me. why is it happening? and how can i avoid this?
thanks very much
-jared
i am declaring two objects with diff names, lets say obj1 and obj2 equal to new ObjectTest objects
i first define all the characteristics of obj1 based on objecttest class characteristics
then i want to set obj2 = obj1 but subsequently manipulate the characteristics of obj2
when i do this, for example
set obj2.NumberValue = obj1.NumberValue - 1
assuming obj1.NumberValue = 20
it will then set obj2.NumberValue = 19. but it ALSO changes Obj1.NumberValue = 19 as well which i do not want. i want to maintaing obj1.numbervalue at 20
this makes no sense to me. why is it happening? and how can i avoid this?
thanks very much
-jared