Hello! And I also get B4XComboBox not initialized and the program hangs on the phone, why?
1. Created a new B4XPages in B4A.
2. Checked that everything works on the device (received a message on the button- Hello World!)
3. Added B4XComboBox in the constructor, checked on the device- it appeared.
4. Added the code:
Sub Globals
Public ChoiceR As B4XComboBox
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim pm As B4XPagesManager
pm.Initialize(Activity)
Dim lst As List
lst.Initialize
For i=0 To 8
lst.Add(i)
Next
ChoiceR.SetItems(lst)
End Sub
The program is installed on the device, but when you start it freezes - there is no button or B4XComboBox,
sometimes writes that B4XComboBox is not initialized.
If you delete a line
then everything works fine, but of course the B4XComboBox is empty and not active at all...