Android Question Force to Pass by Value

DawningTruth

Active Member
Licensed User
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?

B4X:
Dim tempList As List
tempList.Initialize
tempList = MyList

MyList.initialize
 
Top