Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Quick Soln Pls

Author  Topic 

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-09-20 : 08:45:02

How do I convert this

MyVar = G:\VCaP\Documentation\SRD\VcapFileTest\DraftWhy MBA.doc

To

MyVar = G:/VCaP/Documentation/SRD/VcapFileTest/DraftWhy MBA.doc

in C#

I need the function please ie change forward slash to backwords slash

If it is that easy, everybody will be doing it

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-09-20 : 08:51:59
Use StringBuilder.Replace() method !

BTW, this is not C# forum...place only SQL Server related questions here please.

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-09-20 : 08:52:54
use String.Replace function.




Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-09-20 : 09:18:21
Holy crap.

- Jeff
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-09-20 : 09:25:39
exactly



Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2006-09-20 : 09:44:02
quote:
Holy crap


What, the pope took a poop?

[Signature]For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx
Learn SQL
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page
   

- Advertisement -