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