Bug? InsertAt in a LIST

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Is there a bug here? I cannot get InsertAt to work. What am I doing stupid?


upload_2016-5-7_20-22-30.png


upload_2016-5-7_20-27-1.png
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Like this

B4X:
'--- the string is created here

    Dim o As StringBuilder
    o.Initialize
  
    o.Append($"g.ToastMessageShowX("Re-Starting Application...",True)"$).Append(CRLF)
    o.Append($"fn.sleep(750)"$).Append(CRLF)
    o.Append($"Activity.Finish"$).Append(CRLF)
    o.Append($"Return"$).Append(CRLF)
  
'------------------------------------------------------------------------------
'------------------------------------------------------------------------------
'------------------------------------------------------------------------------

'--- this puts it into the list
    Dim lstTmp As List = Regex.Split(CRLF,s)
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
But wait, the list is put into another list and passed as a var around to other code.

B4X:
    Dim lstOfCode As List = lst.Get(1)
    Dim strOfCode As String = lst.Get(0)
 
Top