Alessandro71 Well-Known Member Licensed User Longtime User Oct 20, 2020 #1 According to the main B4XPreferencesDialog thread, you should use a json file to set the 24h option in the time item. Since it's not really practical when you have to programmatically generate items, is there a different way to set the "24" option?
According to the main B4XPreferencesDialog thread, you should use a json file to set the 24h option in the time item. Since it's not really practical when you have to programmatically generate items, is there a different way to set the "24" option?
Alessandro71 Well-Known Member Licensed User Longtime User Oct 21, 2020 #3 I was hoping for a .SetOption("24") method than would keep code clean... Upvote 0
DonManfred Expert Licensed User Longtime User Oct 21, 2020 #4 Alessandro71 said: I was hoping for a .SetOption("24") method than would keep code clean... Click to expand... Create a sub with the name you want; create the json in this sub. Upvote 0
Alessandro71 said: I was hoping for a .SetOption("24") method than would keep code clean... Click to expand... Create a sub with the name you want; create the json in this sub.
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2020 #5 You can do it programmatically with: B4X: PrefDialog.GetPrefItem("time key").Extra = CreateMap("24": true) Upvote 0
You can do it programmatically with: B4X: PrefDialog.GetPrefItem("time key").Extra = CreateMap("24": true)