Sub Activity_Create(FirstTime As Boolean)
' Or maybe it would work better in Activity_Resume, in which case create a Global Boolean and set it to value of FirstTime and check that in Activity_Resume
If FirstTime Then
CallSubDelayed (Me, "PromptForUpdate")
End If
End Sub
Sub PromptForUpdate
Dim iok As Int
Dim bRun As Boolean
iok = Msgbox2( "Vill du uppdatera databasen?","Uppdatera", "Ja", "", "Nej", Null)
If iok = DialogResponse.POSITIVE Then
bRun = True
Else
bRun = False
End If
If bRun = True Then
Msgbox("True","")
Else
Msgbox("False","")
End If
End Sub