Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Replace Function

Status
Not open for further replies.

ardentdev

Programmer
Oct 30, 2002
7
0
0
US
Can anyone tell what is wrong with the following:
strCurrentPath = "Sellers/Test/"
Response.Write Replace(strCurrentPath, "/", "\")

The results are not what I expected...

Sellers/Test/

Does the slash character have any special meaning? TIA
 
It must be something with the way response.write works.
This works.
strCurrentPath = Replace("Sellers/Test/","/","\")
Response.Write strCurrentPath


 
Hmm, don't see the problem works fine for me, sorry I can't help,
-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top