Andyza wrote:
> Bob, it's very rare, but this time you're wrong. See the message in
> this thread by Anthony Jones. A Regular Expression is ideal for this
> problem.
Oh wait! I AM wrong. Nested Replace statements will accomplish this on a
single line.
This
> pNum=replace(pNum," ","")
> pNum=replace(pNum,"-","")
> pNum=replace(pNum,"(","")
> pNum=replace(pNum,")","")
can be done by:
pnum=replace(replace(replace(replace(pNum,")",""), "(",""),"-","")," ","")
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|