Solved

Compare One String with Another: Classic ASP

Posted on 2011-02-21
2
607 Views
Last Modified: 2012-05-11
Hi Experts,

Cant get my head round this classic ASP problem.

Have myString = "test" and yourString="test this string"

I  want youString to equal "this test" if myString = "test"

Or in another way take out a word in yourString if it equals myString.

Cheers,
Numb
0
Comment
Question by:ComfortablyNumb
2 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 34941872
take out a word in yourString if it equals myString.
means

 myString = "test" and yourString="test this string"
result :this string


myString = "test"
yourString = "test this string"
yourString = Replace(yourString, "myString", "")

Response.Write yourString
0
 

Author Closing Comment

by:ComfortablyNumb
ID: 34942432
Thanks. Definitely not thinking straight today!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now