This is how to get TextValue in a ComboBox before and after a spesific symbol, please see how to do that
After Symbol :
'Ambil Text Setelah Tanda (-)
Dim Z As String = CmbMATERIALGROUP.Text
Dim D = Z.Substring(Z.IndexOf("-")+1)
MsgBox("" & D & "")
Before Symbol :
'Ambil Text Sebelum Tanda (-)
Dim Z As String = CmbMATERIALGROUP.Text
Dim D = Z.Substring(0, Z.IndexOf("-"))
MsgBox("" & D & "")
Comments
Post a Comment