vbMarkO Posted September 13, 2005 Posted September 13, 2005 I am trying to trim this ":GA:" from the begining of each Item name in a textfile then load it to a ComboBox I am using this For Each itm In strMin If itm.StartsWith(":GA:") Then 'Dim c As Char() = {":GA:"} ' Tried this but it only cleared the ":" MainApp.minCombo.Items.Add(itm.TrimStart(":GA:")) ' SO I went to this and its still only Trimming ":" End If Next So how might I get this trimmed? I want to trim ":GA:" and add the name/itm following it to the combo box. vbMarkO Quote Visual Basic 2008 Express Edition!
sjn78 Posted September 13, 2005 Posted September 13, 2005 For Each itm In strMin If itm.StartsWith(":GA:") Then MainApp.minCombo.Items.Add(itm.Substring(4)) End If Next Quote
vbMarkO Posted September 14, 2005 Author Posted September 14, 2005 That did it, sorry took so long to respond. But just wanted to let you know that was exactly what I was needing. Thank You vbMarkO p.s. Based on this answer this problem is resolved Quote Visual Basic 2008 Express Edition!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.