2,722
社区成员
发帖
与我相关
我的任务
分享
button1 Click
&&增加一项,绑定列为第二列。
nCnt=Thisform.shapE1.combo2.ListCount +1
Thisform.shapE1.combo2.AddItem(captionid,nCnt,1)
Thisform.shapE1.combo2.AddListItem(.Name,nCnt,2)
button2 Click
&& 删除COMBOBOX中与.name相等的项
For i = 1 To Thisform.shapE1.combo2.ListCount
If Thisform.shapE1.combo2.ListItem(i,2) =.Name
Thisform.shaPE1.combo2.RemoveItem(i)
Exit
Endif
Endfor