Re: removing characters and spaces from a string?
- From: "Rick Rothstein \(MVP - VB\)" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 10:45:09 -0400
basically i will be reading in some kind text string in the format of:
CCC CCC or CCCC CCC where c is a number or letter.
I need to strip everything after the space, including the space so:
ABC 123 would become ABC, ABC2 123 would become ABC2.
any ideas how i'd go about this please?
While I would use the code Larry posted in a "real" program (it is faster),
for non-repetitive (that is, non-looping) code segments on short text
strings, I also use this
txt = "abc 123"
PartBeforeTheSpace = Split(txt)(0)
Rick
.
- References:
- Prev by Date: Re: Error when closing out of VB 6.0
- Next by Date: Re: removing characters and spaces from a string?
- Previous by thread: Re: removing characters and spaces from a string?
- Next by thread: Re: removing characters and spaces from a string?
- Index(es):
Relevant Pages
|