Jump to content
Xtreme .Net Talk

Need to TrimStart ":GA:" but its not doing it


Recommended Posts

Posted

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

Visual Basic 2008 Express Edition!
Posted

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

Visual Basic 2008 Express Edition!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...