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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Quick Soln Pls
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 09/20/2006 :  08:45:02  Show Profile

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
Flowing Fount of Yak Knowledge

India
5581 Posts

Posted - 09/20/2006 :  08:51:59  Show Profile  Visit harsh_athalye's Homepage  Click to see harsh_athalye's MSN Messenger address  Send harsh_athalye a Yahoo! Message
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

Slovenia
11752 Posts

Posted - 09/20/2006 :  08:52:54  Show Profile  Visit spirit1's Homepage
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

USA
7423 Posts

Posted - 09/20/2006 :  09:18:21  Show Profile  Visit jsmith8858's Homepage
Holy crap.

- Jeff
Go to Top of Page

spirit1
Cybernetic Yak Master

Slovenia
11752 Posts

Posted - 09/20/2006 :  09:25:39  Show Profile  Visit spirit1's Homepage
exactly



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

DonAtWork
Flowing Fount of Yak Knowledge

2167 Posts

Posted - 09/20/2006 :  09:44:02  Show Profile
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
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000