Because strings are immutable in B4A, your assignment is making a copy of the contents of the list, not creating a reference to the original (local) variable. Because of this, when the local variable is destroyed, the global variable you copied it to still contains the value(s) you copied to it.