Re: How to do this ?
- From: "Ed Covney" <ccs-ed-was@xxxxxxxxxxxx>
- Date: Wed, 22 Feb 2006 19:42:11 -0700
Leslie -
Be carefull what you wish for. Are you absolutely
sure you want to get rid of all spaces, puncuation
and formating as well? No matter what the desired
valid characters are - it seems like every character
must be tested. Assuming you can set up tcursor'ing
through your table, the meat (untested) is provided
below.
Ed
strValid = "0123456789abcd.." ; fully enumerate desireable characters
(open / edit tcursor)
....(start loop to move thru table 1 record at a time)
strIn = tcD."FieldName" ; field to be stripped
strOut = ""
for i from 1 to strIn.size()
strX = strIn.substr(i,1)
if strValid.search(strX) > 0 then ; Valid character
strOut = strOut + strX
endif
endfor
tcD."FieldName" = strOut
tcD.postrecord()
.... end loop ( & cleanup)
--------------
"Leslie Milburn" <CDB4W@xxxxxxxxxxxxxxxxxx> wrote in message
news:43fd086a@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
I need to strip all punctation out of an alpha field leaving just the the
a-z, A-Z, and 0 - 9 characters.
Can this be done via a QBE or SQL Query ? and if so can anyone give an
example
Thanks
Leslie.
.
- Follow-Ups:
- Re: How to do this ?
- From: Leslie Milburn
- Re: How to do this ?
- From: Liz McGuire
- Re: How to do this ?
- References:
- How to do this ?
- From: Leslie Milburn
- How to do this ?
- Prev by Date: Re: How to do this ?
- Next by Date: Re: How to do this ?
- Previous by thread: Re: How to do this ?
- Next by thread: Re: How to do this ?
- Index(es):
Relevant Pages
|
|