D DawningTruth Active Member Licensed User Apr 11, 2019 #1 I have a scenario where I have to pass a list to a temp variable and then re-initialize the list. When I re-initialize the list I lose the value in my temp variable. The reason being that it passed the reference to the temp variable and not the values. Here is a sample code, any suggestions on how to pass the values contained in the list rather than the reference? Code: Copy Dim tempList As List tempList.Initialize tempList = MyList MyList.initialize
I have a scenario where I have to pass a list to a temp variable and then re-initialize the list. When I re-initialize the list I lose the value in my temp variable. The reason being that it passed the reference to the temp variable and not the values. Here is a sample code, any suggestions on how to pass the values contained in the list rather than the reference? Code: Copy Dim tempList As List tempList.Initialize tempList = MyList MyList.initialize
Erel B4X founder Staff member Licensed User Longtime User Apr 11, 2019 #2 Code: Copy Dim tempList As List = MyList Dim MyList As List MyList.Initialize Upvote 0
D DawningTruth Active Member Licensed User Apr 11, 2019 #3 Erel said: Code: Copy Dim tempList As List = MyList Dim MyList As List MyList.Initialize Click to expand... Thx Upvote 0
Erel said: Code: Copy Dim tempList As List = MyList Dim MyList As List MyList.Initialize Click to expand... Thx