这是我的场景。
 I have a combo box which has 8 items. {items : a,b,c,d,e,f,g,h}
我有一个包含员工列的表。
if  i select a and when i insert that into my database table,it should be 1
if  i select b and when i insert that into my database table,it should be 1  and so on for 8 items.
我正在尝试的是:
objSQLParms(12) = New SqlParameter("@Employee_Type", SqlDbType.SmallInt)
       If cmbList.Text.Trim = "Employee" Then
            If cmbemployee.Text.Trim.Length = 0 Then
                objSQLParms(12).Value = 0
            Else
                objSQLParms(12).Value = cmbemployee.Text.Trim.Substring(0, 1)
            End If
        Else
            objSQLParms(12).Value = 0
通过这样做,我只得到组合框中存在的值。如何在这个场景中写一个案例来获取数字。
提前致谢