Android Question B4X ComboBox Add Items

Hi all.
After searching the forum on this topic I still can't manage to add items to my b4xcombobox...


I tried this:

Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")

B4XComboBox1.AddItem("Item 1")
B4XComboBox1.AddItem("Item 2")

End Sub

I get an error in the logs saying: unknown member AddItem

i declared the ComboBox in the class clobals as:
Private B4XComboBox1 As B4XComboBox

What am I missing?
Thanks.

================================
Using B4X 12.80
Android 14
================================
 
Solution
Please use [code]code here...[/code] tags when posting code.

B4X:
B4XComboBox1.SetItems(Array("Item 1", "Item 2")

Or:
B4X:
Dim items As List
items.Initialize
items.Add("Item 1")
items.Add("Item 2")
B4XComboBox1.SetItems(items)
Top