M MattC Member Licensed User Longtime User Jan 4, 2017 #1 Trying to clean up after myself here - is it possible to completely remove a key in the Statemanager code module? Or something I can set a key to that removes it? Or should I not bother?
Trying to clean up after myself here - is it possible to completely remove a key in the Statemanager code module? Or something I can set a key to that removes it? Or should I not bother?
Erel B4X founder Staff member Licensed User Longtime User Jan 4, 2017 #2 The truth is that there is no good reason to use the settings feature of StateManager. You should use KeyValueStore2 instead. You can add this method: B4X: Public Sub RemoveSetting (Key As String) If settings.IsInitialized Then settings.Remove(Key) End Sub Upvote 0
The truth is that there is no good reason to use the settings feature of StateManager. You should use KeyValueStore2 instead. You can add this method: B4X: Public Sub RemoveSetting (Key As String) If settings.IsInitialized Then settings.Remove(Key) End Sub
M MattC Member Licensed User Longtime User Jan 5, 2017 #3 Erel said: The truth is that there is no good reason to use the settings feature of StateManager. You should use KeyValueStore2 instead. You can add this method: B4X: Public Sub RemoveSetting (Key As String) If settings.IsInitialized Then settings.Remove(Key) End Sub Click to expand... Thank you! Upvote 0
Erel said: The truth is that there is no good reason to use the settings feature of StateManager. You should use KeyValueStore2 instead. You can add this method: B4X: Public Sub RemoveSetting (Key As String) If settings.IsInitialized Then settings.Remove(Key) End Sub Click to expand... Thank you!