Android Question Statemanager save as a Long type

trueboss323

Active Member
Licensed User
Longtime User
Hello, I have Statemanager for saving settings and I use this code
B4X:
StateManager.SetSetting("Starttime", DateTime.Date(DateTime.Now)&" " & DateTime.Time(DateTime.Now))

But the problem I think it saves the value as a string, so how can I save it as a Long value?
 

DonManfred

Expert
Licensed User
Longtime User
But the problem I think it saves the value as a string
Sure. You ARE giving a STRING...

B4X:
StateManager.SetSetting("Starttime", DateTime.Now)
 
Upvote 0
Top