Hi,
when using the following code to clean up controls on a Panel it runs on the desktop but gives the error attached when tried to compile for device :
the error is attahced.
Please suggest the right code.
regards.
when using the following code to clean up controls on a Panel it runs on the desktop but gives the error attached when tried to compile for device :
B4X:
names() = GetControls("Panel2") '-- check for missing info. in tab page Pg3
For i = 0 To ArrayLen(names()) - 1
If ControlType(names(i)) = "ComboBox" OR ControlType(names(i)) = "TextBox" Then
If (ControlType(names(i)) = "ComboBox" AND Control(names(i)).SelectedIndex < 0) OR (ControlType(names(i)) = "TextBox" AND Control(names(i)).text = "" Then) Then
Msgbox ("Information missing on Pg 3","",cMsgboxOK,cMsgboxExclamation)
tbc.SelectedIndex = 2
Return
End If
End If
Next
the error is attahced.
Please suggest the right code.
regards.