Left of a character in a string in vb.net

Viewed 86343

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 function doesn't allow me to specify seperator character.

Thanks

8 Answers
Related