T trueboss323 Active Member Licensed User Longtime User May 15, 2015 #1 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?
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 May 15, 2015 #2 trueboss323 said: But the problem I think it saves the value as a string Click to expand... Sure. You ARE giving a STRING... B4X: StateManager.SetSetting("Starttime", DateTime.Now) Upvote 0
trueboss323 said: But the problem I think it saves the value as a string Click to expand... Sure. You ARE giving a STRING... B4X: StateManager.SetSetting("Starttime", DateTime.Now)
T trueboss323 Active Member Licensed User Longtime User May 15, 2015 #3 So how can I convert and save it as a Long type? Upvote 0
DonManfred Expert Licensed User Longtime User May 15, 2015 #4 B4X: dim dt as Long = Datetime.now StateManager.SetSetting("Starttime", dt) Upvote 0