S stanks Active Member Licensed User Longtime User Aug 4, 2020 #1 How to get default Boolean value? Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2020 #2 What do you mean with default value? B4X: Dim b As Boolean = kvs.Get("key") Upvote 0
toby Well-Known Member Licensed User Longtime User Aug 4, 2020 #3 Or something like the following? B4X: Dim x As Boolean =kvs.GetDefault("bolKey", True) Log(x) 'true or false kvs.Put("bolKey", False) Log(x) 'false x =kvs.GetDefault("bolKey", True) Log(x) 'false Upvote 0
Or something like the following? B4X: Dim x As Boolean =kvs.GetDefault("bolKey", True) Log(x) 'true or false kvs.Put("bolKey", False) Log(x) 'false x =kvs.GetDefault("bolKey", True) Log(x) 'false