如何检查来自的数据是否cmbTypeYacht.text
已经存在cmbTypeYacht.list
?
这是我所拥有的:
Dim TypeYacht As String 'Type of yacht input
TypeYacht = cmbTypeYacht.Text
If TypeYacht = ("cmbTypeYacht list") Then
MsgBox "Type of Yacht is already on the list", vbExclamation, "Yacht Chantering"
Else
cmbTypeYacht.AddItem cmbTypeYacht.Text
With cmbTypeYacht
.Text = ""
.SetFocus
End With
End If
抱歉,我不太确定是哪个标签,但我使用的是 Microsoft Visual Basic 应用程序。