Bug? InsertAt in a LIST

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)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…