Home All Groups Group Topic Archive Search About

making a string var like "nr1 nr2 nr3"

Author
19 Jun 2006 4:15 PM
andreas
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

Author
19 Jun 2006 4:23 PM
andreas
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
>
>
Author
19 Jun 2006 4:26 PM
tommaso.gastaldi
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
Author
19 Jun 2006 4:28 PM
Herfried K. Wagner [MVP]
"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/>
Author
19 Jun 2006 6:19 PM
andreas
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/>