|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
quotation marks in string - how to addSimple,dumm question - how to include quotation marks in the string?
F.ex. "Data Source=.\SQLEXPRESS;AttachDbFilename="C:\client data.mdf";Integrated Security=True;User Instance=True" I get syntax error. Thanks for help Ufi You put them in twice. So something like:
Dim s as String = "Double quotes around test: ""test""" Show quoteHide quote "Ufit" <kot_tmp0SPAMSPAM@NOpoczta.fm> wrote in message news:e8gvt4$3nu$1@news.onet.pl... > Simple,dumm question - how to include quotation marks in the string? > F.ex. "Data Source=.\SQLEXPRESS;AttachDbFilename="C:\client > data.mdf";Integrated Security=True;User Instance=True" > I get syntax error. > Thanks for help > > Ufi Another option:
String.Format("Data Source=.\SQLEXPRESS;AttachDbFilename={0}C:\client data.mdf{0};Integrated Security=True;User Instance=True", ControlChars.Quote) Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx Show quoteHide quote > Simple,dumm question - how to include quotation marks in the string? > > F.ex. "Data Source=.\SQLEXPRESS;AttachDbFilename="C:\client > data.mdf";Integrated Security=True;User Instance=True" > > I get syntax error. > > Thanks for help > > Ufi > "Ufit" <kot_tmp0SPAMSPAM@NOpoczta.fm> schrieb: Encode each quotation mark that should appear in the string as two > Simple,dumm question - how to include quotation marks in the string? > F.ex. "Data Source=.\SQLEXPRESS;AttachDbFilename="C:\client > data.mdf";Integrated Security=True;User Instance=True" > I get syntax error. consecutive quotation marks: \\\ s = "He said ""Hello World!""" /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
TreeView control checked based on if records exist
What exactly does it mean when they say CopyFile() and Progress Bar? Get object from name how to parse an Enum Structure in vb.net CreateInstance and late binding what is best practice to populate large combobox? Q: Deleting a table with constraints VB 2005 Newbie - Binding? No of files in folder |
|||||||||||||||||||||||