I can read through a list and cast to whatever I need and change values of other objects, but for some reason I can not change the value of regular string variables in a list:
I have tried various other methods and none of them change the value of the string.
Thanks in advance
Russell
SuperStrict Type TTest Field str:String Field a:Int End Type Local obj:TTest = New TTest Local list:TList = New TList Local myname:String = "Russell" list.AddLast(obj) list.AddLast(myname) For Local a:Object = EachIn list Local temptest:TTest Local tempstring:String If TTest(a) temptest = TTest(a) temptest.str = "Goodbye"' THIS WORKS temptest.a = 10 ' THIS WORKS TOO ElseIf String(a) tempstring = String(a) tempstring = "Jones" ' WHY DOESN'T THIS WORK? EndIf Next
I have tried various other methods and none of them change the value of the string.
Thanks in advance
Russell