theboyholty
New member
- Joined
- Apr 12, 2011
- Messages
- 3
- Programming Experience
- Beginner
Ok only one question, but i'm sure i'll have more soon enough.
I want to do in vb.net what I would have done in SQL with the CHARINDEX command.
That is, I want to interrogate a string and ask, 'Does this string contain a hyphen? If so, whereabouts in the string is it?'
I tried Googling this but as with a lot of things in vb.net, there's always a million different answers given with each response seemingly trying to overcomplicate the issue and out-code the previous one. Hence my confusion.
So, in bascis terms, how would I go about this?
Thanks.
I want to do in vb.net what I would have done in SQL with the CHARINDEX command.
That is, I want to interrogate a string and ask, 'Does this string contain a hyphen? If so, whereabouts in the string is it?'
I tried Googling this but as with a lot of things in vb.net, there's always a million different answers given with each response seemingly trying to overcomplicate the issue and out-code the previous one. Hence my confusion.
So, in bascis terms, how would I go about this?
Thanks.