roberto64 Active Member Licensed User Longtime User Feb 21, 2022 #1 Hi, I'm using PreferencesDialog with B4XTable, adding a field in B4XTable with Time (from PreferencesDialog) all ok using as command "Period and Orap = ($" $ 2.0 {t.Hours}: $ 2.0 {t.Minutes} "$)" but when I make a change that opens PreferencesDialog it gives me error period. a solution? regards
Hi, I'm using PreferencesDialog with B4XTable, adding a field in B4XTable with Time (from PreferencesDialog) all ok using as command "Period and Orap = ($" $ 2.0 {t.Hours}: $ 2.0 {t.Minutes} "$)" but when I make a change that opens PreferencesDialog it gives me error period. a solution? regards
M Mahares Expert Licensed User Longtime User Feb 21, 2022 #2 roberto64 said: but when I make a change that opens PreferencesDialog it gives me error period. Click to expand... For instance if the time you had is 13:25 and you want to change it in the preference dialog, say to 19:46, you need to save it as a period: Code: Dim p As Period p.Hours= 19 p.Minutes= 46 Options1.Put("Time", p) Your change will appear as 7 46 pm when you open the dialog. By the way, you are not showing what the error is. You need to have a better description of your problem. Upvote 0
roberto64 said: but when I make a change that opens PreferencesDialog it gives me error period. Click to expand... For instance if the time you had is 13:25 and you want to change it in the preference dialog, say to 19:46, you need to save it as a period: Code: Dim p As Period p.Hours= 19 p.Minutes= 46 Options1.Put("Time", p) Your change will appear as 7 46 pm when you open the dialog. By the way, you are not showing what the error is. You need to have a better description of your problem.