|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
making a string var like "nr1 nr2 nr3"F.e. I want to make a stringvariable str = "nr1 nr2 nr3" that it should
display like "nr1 nr2 nr3" str = """ & str & """ do not work. Thanks for any response My problem is that
diagnostics.process.start("wordpad" , sFilePath) seems not to work if there are spaties in the variable sFilePath Maybe that it works when I can set " at the beginning and at the end of the variable Am I right? Show quoteHide quote "andreas" <andr***@pandora.be> wrote in message news:O4Alg.491424$Ed2.12600449@phobos.telenet-ops.be... > F.e. I want to make a stringvariable str = "nr1 nr2 nr3" that it should > display like "nr1 nr2 nr3" > str = """ & str & """ do not work. > Thanks for any response > > Dim n1n2n3 As String = "nr1 nr2 nr3"
Dim Str1 As String = """" & n1n2n3 & """" MsgBox(Str1) Dim Str2 As String = Chr(34) & n1n2n3 & Chr(34) MsgBox(Str2) Dim Str3 As String = Chr(39) & n1n2n3 & Chr(39) MsgBox(Str3) andreas ha scritto: Show quoteHide quote > F.e. I want to make a stringvariable str = "nr1 nr2 nr3" that it should > display like "nr1 nr2 nr3" > str = """ & str & """ do not work. > Thanks for any response "andreas" <andr***@pandora.be> schrieb: \\\> F.e. I want to make a stringvariable str = "nr1 nr2 nr3" that it should > display like "nr1 nr2 nr3" > str = """ & str & """ do not work. str = """" & str & """" /// - or - \\\ str = ControlChars.Quote & str & ControlChars.Quote /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Yes, Herfried
That it is. Thanks very much Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:eAXel17kGHA.4660@TK2MSFTNGP05.phx.gbl... > "andreas" <andr***@pandora.be> schrieb: > > F.e. I want to make a stringvariable str = "nr1 nr2 nr3" that it should > > display like "nr1 nr2 nr3" > > str = """ & str & """ do not work. > > \\\ > str = """" & str & """" > /// > > - or - > > \\\ > str = ControlChars.Quote & str & ControlChars.Quote > /// > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Compress a string
Help needed, Removing duplicate lines in text file How do I get COMPLETE response from HttpWebResponse using StreamReader??? "Array" of pictureboxes Adding reference errors... Security Exception when deploying a VB.NET 2003 solution. retrieve key from collection Help me, please view the strange problem!!! My form has a hiccup WinForms Designer Grid |
|||||||||||||||||||||||