如何检查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应用程序。
嗯,这是它,VB.NET或VBScript?还是VBA?我将假设VB.NET,但你没有括号...... – Ryan