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
Get the location of the dash first (or do it inline), and use that value for the left. This is old school VBA, but it'll be something like this:
Left(YourStringWithTheDash, InStr(YourStringWithTheDash)-1)