chjk Member Licensed User Longtime User Apr 15, 2016 #1 rateView value is true,but when reload file to Map rateView value is 1. So that it is false! What should I do to get the right value?Thanks!
rateView value is true,but when reload file to Map rateView value is 1. So that it is false! What should I do to get the right value?Thanks!
marcick Well-Known Member Licensed User Longtime User Apr 16, 2016 #2 if the map is in memory you can store any object, but when it is written to a file you must use only text fields. So, don't store boolean but use instead "0" or "1" for example. This is how it works .... Upvote 0
if the map is in memory you can store any object, but when it is written to a file you must use only text fields. So, don't store boolean but use instead "0" or "1" for example. This is how it works ....
chjk Member Licensed User Longtime User Apr 16, 2016 #3 marcick said: if the map is in memory you can store any object, but when it is written to a file you must use only text fields. So, don't store boolean but use instead "0" or "1" for example. This is how it works .... Click to expand... I see, but get boolean value is false, should be true! Upvote 0
marcick said: if the map is in memory you can store any object, but when it is written to a file you must use only text fields. So, don't store boolean but use instead "0" or "1" for example. This is how it works .... Click to expand... I see, but get boolean value is false, should be true!
marcick Well-Known Member Licensed User Longtime User Apr 16, 2016 #4 I told you. You can't use file.writemap and file.readmap if your map contains any non text fields. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 17, 2016 #5 Use KeyValueStore2 instead: https://www.b4x.com/android/forum/threads/b4x-keyvaluestore-2-simple-powerful-local-datastore.63633/ Upvote 0
Use KeyValueStore2 instead: https://www.b4x.com/android/forum/threads/b4x-keyvaluestore-2-simple-powerful-local-datastore.63633/