J
Jason
I have a string that looks like this?
ihelloworld_zzz_yyy
In a single vb.net line, I want to remove the frist character and
anything after and including the first "_"
resulting in :
helloworld
I've been trying things like this:
Dim cleanname = c.ID.Remove(1).Substring(0, c.ID.IndexOf("_"c))
Dim cleanname = c.ID.subsrting(1,c.id.Length).Substring(0,
c.ID.IndexOf("_"c))
the error I get is that the index is out of bounds becasue it's a
substring of a substring and the index I guess has changed.
thanks.
ihelloworld_zzz_yyy
In a single vb.net line, I want to remove the frist character and
anything after and including the first "_"
resulting in :
helloworld
I've been trying things like this:
Dim cleanname = c.ID.Remove(1).Substring(0, c.ID.IndexOf("_"c))
Dim cleanname = c.ID.subsrting(1,c.id.Length).Substring(0,
c.ID.IndexOf("_"c))
the error I get is that the index is out of bounds becasue it's a
substring of a substring and the index I guess has changed.
thanks.