janderkan Well-Known Member Licensed User Longtime User Jun 19, 2020 #1 Hi Using the formsbuilder I can change the time format to 24 hour. But I am not lucky to do it from code B4X: prefDialog.AddTimeItem("pref_time_start","Start time")) prefDialog.SetOptions("pref_time_start",Array As Object("24")) Last edited: Jun 21, 2020
Hi Using the formsbuilder I can change the time format to 24 hour. But I am not lucky to do it from code B4X: prefDialog.AddTimeItem("pref_time_start","Start time")) prefDialog.SetOptions("pref_time_start",Array As Object("24"))
Erel B4X founder Staff member Licensed User Longtime User Jun 21, 2020 #2 1. No need to write As Object. This is the default type. 2. Best to build the template with the FormBuilder tool. 3. B4X: prefDialog.AddTimeItem("pref_time_start","Start time")) prefDialog.GetPrefItem("pref_time_start").Extra.Put("24", True) Upvote 0
1. No need to write As Object. This is the default type. 2. Best to build the template with the FormBuilder tool. 3. B4X: prefDialog.AddTimeItem("pref_time_start","Start time")) prefDialog.GetPrefItem("pref_time_start").Extra.Put("24", True)