Hi,
If I quit my app by this code:
Then the app is quited. It is no longer in task manager. Perfect, but....
When I restart the app, the global variable that contains the id of the last datarow is still filled with the number of the previous time i used the app.
So it looks quiting the app will not reset that global var data.
Sure I can set the var to nil or zero at start, but i'm searching for the reason why the data is hold while the app isn't runing.
The position where the global var is located is AppUtils. This is a code module without any layout.
Do I need to close that module?
Best regards,
Marc
If I quit my app by this code:
B4X:
Sub btnMenuQuit_Click
Dim Answ As Int
Answ = Msgbox2("Are you sure to quit '" & AppUtils.cstAppName & "'?" ,AppUtils.cstAppName,"Yes","","No",Null)
If Answ = DialogResponse.positive Then
Activity.finish
End If
End Sub
When I restart the app, the global variable that contains the id of the last datarow is still filled with the number of the previous time i used the app.
So it looks quiting the app will not reset that global var data.
Sure I can set the var to nil or zero at start, but i'm searching for the reason why the data is hold while the app isn't runing.
The position where the global var is located is AppUtils. This is a code module without any layout.
Do I need to close that module?
Best regards,
Marc