Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# replace command
Message
 
 
To
16/01/2008 10:31:11
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01282218
Message ID:
01282241
Views:
9
>
>Dim x As String
>x = "I'm a boy"
>x = x.Replace("'","\'")
>'x is equal to "I\'m a boy"
>
>
>Does this work for you? It works for me.

It doesn't for me in the immediate window. Other characters work, like "'" with "~'"

I'm using C#, could it be a reason?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform