say if I have a string 010451-09F2
How to I get left of - from the above string in vb.net
I want 010451
The left fu
dim s as String = "010451-09F2" Console.WriteLine(s.Substring(0, s.IndexOf("-"))) Console.WriteLine(s.Split("-")(0))