473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Probems with Replace Command

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

Sep 3 '05 #1
2 2116
"Jimmy" <ab************@yahoo.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.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.
Sep 3 '05 #2
Hi ,

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

test = Replace(test,"xxxx/xxxxxxxxxx"*,"yyy/yyyyy",1,-1,1)

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

Sep 5 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven Mason | last post by:
Here's my problem. I've certain jar files I've included in my classpath that I need to work with. I've included these in my path variable so when I type path at the command line I get : ...
3
by: Roy Adams | last post by:
Hi group I'm having trouble using the replace command Here's my code below <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> <!--#include file="../../Connections/conn.asp" --> <% if(...
6
by: Danny | last post by:
I need an asp command to strip out from a string all extra punctuation such as apostrophe, comma, period, spaces dashes, etc etc and just leave the letters. Can anybody give me some ideas? ...
1
by: Danny | last post by:
Why doesnt this work in access? bstring = replace(astring, "<*>", "") I want to replace a portion of a string between and including the brackets (html code) and replace it with nothing. I...
9
by: Tony | last post by:
Win XP Pro - access 2002 - vs 2002 - vb Can someone tell me why this doesn't work? Dim MyString as string MyString = "Winner's" Mystring.replace("'", " ") I'm trying to remove any single...
3
by: rdemyan via AccessMonster.com | last post by:
One of my users had a corrupt front end that wouldn't open. My app is launched using a launching application (logon app). The logon app has a button for downloading a "fresh" copy of the front...
6
by: JackpipE | last post by:
Here is my replace query and I need to run this on every column in my table. Right now I manually enter the column name (_LANGUAGES_SPOKEN) but this is time consuming and would like to automate...
13
by: Ciara9 | last post by:
I created a command button using the record navigation feature, find record. Does anyone know how to turn off the functionality of the "replace" tab that gives the user the ability to replace the...
2
by: =?Utf-8?B?TWFya19C?= | last post by:
I am trying to replace any occurance of minus-point "-." with minus-zero-point "-0." My regex: Regex repoint_num = new Regex(@"\-\."); My data: string xyz = "-.9"; My...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.