vb listbox控件怎样检测内容,根据内容响应事件?
listbox 控件加载adult.dat记事本内容,记事本内容有特殊字符,一年级||>二年级==>,点击列表一年级,检测内特殊字符||>响应msgbox"你选择的是一年级"。点击列表二年级,检测内特殊字符||>响应msgbox"你选择的是二年级",怎样做到


2012-12-23 21:34
2012-12-23 23:30
2012-12-24 00:00
2012-12-24 00:01
程序代码:Private Sub List1_Click() If Right(List1.Text, 3) = "||>" Then MsgBox "你选择的是一年级" ElseIf Right(List1.Text, 3) = "==>" Then MsgBox "你选择的是二年级" End If End Sub

2012-12-24 10:46
2012-12-24 11:24
2012-12-24 11:29

2012-12-24 11:32

2012-12-24 11:33
2012-12-24 14:12