R rosippc64a Active Member Licensed User Longtime User Mar 23, 2018 #1 Hi All, this is my first encounter with this problem and I don't know it is a feature or what else? Code: Copy Type TCallist (sorpoz As Int, actDirMap As Map) dim Callist as list Callist.initialize ... Dim t As TCallist t.Initialize t.sorpoz=sorpoz t.actDirmap=actDirMap CallList.Add(t) ... actDirmap = newactDirmap '<<<---------- At the signed row the value in the CallList last element the (sorpoz,actDirmap) will be (sorpoz,newactDirmap)! How can I preserve the original value (maybe clone the map)? best regards Steven
Hi All, this is my first encounter with this problem and I don't know it is a feature or what else? Code: Copy Type TCallist (sorpoz As Int, actDirMap As Map) dim Callist as list Callist.initialize ... Dim t As TCallist t.Initialize t.sorpoz=sorpoz t.actDirmap=actDirMap CallList.Add(t) ... actDirmap = newactDirmap '<<<---------- At the signed row the value in the CallList last element the (sorpoz,actDirmap) will be (sorpoz,newactDirmap)! How can I preserve the original value (maybe clone the map)? best regards Steven
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2018 #2 Change it to: Code: Copy Dim actDirmap As Map = newactDirmap Upvote 0