Jump to content
Xtreme .Net Talk

escape char function


Recommended Posts

Guest Cheung
Posted
Do you know any function that change ' (single quote) to '' (2 single quotes) in a string?
Guest Cheung
Posted

Any function to do this for me?

 

function input string = It isn't bad

function output string = It isn''t bad

 

Thx!

Guest Perl
Posted

Dim MyString as String = "'Hello My Name Is Simon'"

MyString.replace( "'", Chr(34) )

 

*Should Work* :)

 

Or you could just write it out using Chr(34) but who wants to do that ? :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...