Hi,
When compiling the program with the new version of lmB4XComboBox, an error occurs:
Error compiling program.
Error description: Unknown member: items
Error occurred on line: 430
mCmbBox.Items.Clear
Word: items
The fix for this error would be :
And another thing I noticed (cboxxx.mBase.Enabled = False or cboxxx.CmbBox.Enabled = False) does not work.
You probably need to add Properties
When compiling the program with the new version of lmB4XComboBox, an error occurs:
Error compiling program.
Error description: Unknown member: items
Error occurred on line: 430
mCmbBox.Items.Clear
Word: items
The fix for this error would be :
B4X:
' Clears all items from the combo box.
Public Sub Clear
#If B4A
mCmbBox.Clear
#Else If B4J
mCmbBox.Items.Clear
#Else If B4i
If mItems.IsInitialized = False Then mItems.Initialize
mItems.Clear
mSelectedIndex = -1
If mBtn.IsInitialized Then mBtn.Text = ""
#End If
End Sub
And another thing I noticed (cboxxx.mBase.Enabled = False or cboxxx.CmbBox.Enabled = False) does not work.
You probably need to add Properties
B4X:
Public Sub setEnabled(Value As Boolean)
mBase.Enabled = Value
mCmbBox.Enabled = Value
End Sub
Public Sub getEnabled As Boolean
Return mCmbBox.Enabled
End Sub
Last edited: