[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 620
  • Last Modified:

Compare One String with Another: Classic ASP

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
ComfortablyNumb
Asked:
ComfortablyNumb
1 Solution
 
Pratima PharandeCommented:
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
 
ComfortablyNumbAuthor Commented:
Thanks. Definitely not thinking straight today!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now