Android Question Msgbox handle

hookshy

Well-Known Member
Licensed User
Longtime User
B4X:
'first option
rank3.Add(scor)
    File.WriteList(File.DirDefaultExternal,"rank3,txt",rank3)
       
      Msgbox("Game over!","Continue adventure")

' second option

Msgbox("Game over!","Continue adventure")
  rank3.Add(scor)
    File.WriteList(File.DirDefaultExternal,"rank3,txt",rank3)

I am faceing the following issues the first statement works good ...but second does not execute well
When I am loading list in scrol view no score is added as the rank list is found empty
The msgbox is ending the sub ? and the code below is not executed ? Is this normal ?
 
Top