Re: how do you check a string before replace
- From: "Larry Linson" <bouncer@xxxxxxxxxxxxx>
- Date: Fri, 10 Apr 2009 19:52:48 GMT
Salad's way is simpler and easier, but if you want to test character by
character, the ASCII code of a numeric character is greater than 48 and less
than 58 and the most commonly used blank/space character's ASCII code is 32.
Larry Linson
Microsoft Office Access MVP
"sparks" <sparks@xxxxxxxxxxx> wrote in message
news:lq2vt4pd3agfvujv85sijosvtc97q7ko7v@xxxxxxxxxx
I have a ton of strings I am parsing out and the only problem I have
is knowing whats a date and whats a special chr in a text field.
##/##/## is a date and so is #/#/## while bob/fred/mary is not.
so I checked and its ok for me to just replace all the non date / with
an underscore.
This way I can populate a table with the date and comment I pull out
of each memo field.
replace sounds nice but how do I check and see if the chr in front of
or behind the / is a number or a " " or a chr?
is this the best way to go?
__________ Information from ESET Smart Security, version of virus
signature database 3999 (20090410) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus signature database 3999 (20090410) __________
The message was checked by ESET Smart Security.
http://www.eset.com
.
- Follow-Ups:
- Re: how do you check a string before replace
- From: Salad
- Re: how do you check a string before replace
- References:
- how do you check a string before replace
- From: sparks
- how do you check a string before replace
- Prev by Date: Re: Help on help
- Next by Date: Re: how do you check a string before replace
- Previous by thread: Re: how do you check a string before replace
- Next by thread: Re: how do you check a string before replace
- Index(es):
Relevant Pages
|