Hi,

I am facing problems with the replace command in classic ASP.

my code is as follows:
.........
test = Replace(test,"xxxx/xxxxxxxxxx","yyy/yyyyy",,,1)
.........


I want to use compare method as vbTextCompare i.e. 1
When I remove this parameter, it works fine.

the error is as follows:
Microsoft VBScript runtime error '800a000d'
Type mismatch


Can someone kindly help me out with this

Thanks in advance

Re: Probems with Replace Command by McKirahan

McKirahan
Fri Sep 02 20:12:17 CDT 2005

"Jimmy" <abhishekbhattj@yahoo.com> wrote in message
news:1125709039.709089.70460@g47g2000cwa.googlegroups.com...
> Hi,
>
> I am facing problems with the replace command in classic ASP.
>
> my code is as follows:
> .........
> test = Replace(test,"xxxx/xxxxxxxxxx","yyy/yyyyy",,,1)
> .........
>
>
> I want to use compare method as vbTextCompare i.e. 1
> When I remove this parameter, it works fine.
>
> the error is as follows:
> Microsoft VBScript runtime error '800a000d'
> Type mismatch
>
>
> Can someone kindly help me out with this
>
> Thanks in advance
>

What a value of the variable "test"?

We need to simulate/duplicate your problem.



Re: Probems with Replace Command by Jimmy

Jimmy
Mon Sep 05 09:14:48 CDT 2005

Hi ,

Thanks for looking in to the issue.
I was able to resolve the error I used the following code:

test =3D Replace(test,"xxxx/xxxxxxxxxx"=AD,"yyy/yyyyy",1,-1,1)

By The way, the value of test was HTML Content
Thanks Again.