Android Question B4XPlusMinus format

Sergey_New

Active Member
Licensed User
Tell me how to set the time format for the B4XPlusMinus element to display the sequence of hours: 0:00 1:00 2:00, etc.
B4X:
B4XPlusMinus.SetNumericRange (0, 23, 1)
 

José J. Aguilar

Expert
Licensed User
Hi:

Maybe you can adapt this code:

 
Upvote 0

Sergey_New

Active Member
Licensed User
Thank you!
B4X:
    Private TimeList As List
    TimeList.Initialize
    For j = 0 To 23
        TimeList.Add(j & ":00")
    Next
    B4XPlusMinus.SetStringItems(TimeList)
One more question: how to set the default time value?
Found:
B4X:
B4XPlusMinus4.SelectedValue = "19:00"
 
Last edited:
Upvote 0
Top