Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15549

VS 2019 Separateing strings

$
0
0
I need to separate strings, however not looking to use arrays or list to so if I don't have to.

I want to separate by a specific character ("-"). Everything beyond and including the - I want to drop or delete.

So in other words ABC-12 becomes ABC and -12 will be deleted.

What is the best was to do this?

I know about split but that seems overkill for what I want to do.

Thank You

Viewing all articles
Browse latest Browse all 15549

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>