Android Question [B4X] B4XPreferencesDialog set options per code

Alexander Stolte

Expert
Licensed User
Hey, if i create a layout with the Form Builder with the type "Short Options" how can i set the "Options" on the code ?

upload_2019-5-20_13-38-21.png
 

jimmyF

Active Member
Licensed User
B4X:
Dim ls As List
ls.Initialize
ls.AddAll(Array As String("Mon","Tues"))
prefdialog.AddShortOptionsItem("test","Test",ls)
ls.Add("Wed")
prefdialog.SetOptions("test",ls)

EDIT
 
Upvote 0

jimmyF

Active Member
Licensed User
You can also use the SetOptions command on the Short Options

B4X:
ls.Add("Wed")
prefdialog.SetOptions("test",ls)
 
Upvote 0
Top