I'm trying to implement time in a B4XPlusMinus, like this:
hours and minutes together.
I looked for setting SetNumericRange but without success. So, I used a workaround:
that works perfectly. But this sound to me as smelling code.
I wonder if there is a way with SetNumericRange or another way that doesn't involve two For cycle and a list.
hours and minutes together.
I looked for setting SetNumericRange but without success. So, I used a workaround:
B4X:
Private TimeList As List
(...)
TimeList.Initialize
For j = 0 To 23
For k = 0 To 59
TimeList.Add($"$1.0{j}:$2.0{k}"$)
Next
Next
(...)
B4XPlusMinus1.SetStringItems(TimeList)
I wonder if there is a way with SetNumericRange or another way that doesn't involve two For cycle and a list.