How variable expansion question? How?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to use a variable value in a double quoted string.

For example,

Dim strVar As String

strVar = "arg1"
txtFile.WriteLine ("""test.exe""" """strVAR""")

This is not complete code but I think it shows what I'm trying to do
I want the file to contain

"test.exe" "arg1"

including the double quotes.

Can anyone help?
 
Tec92407 said:
I need to use a variable value in a double quoted string.

For example,

Dim strVar As String

strVar = "arg1"
txtFile.WriteLine ("""test.exe""" """strVAR""")

This is not complete code but I think it shows what I'm trying to do
I want the file to contain

"test.exe" "arg1"

including the double quotes.


txtFile.WriteLine """test.exe"" """ & strVAR & """"
 
Back
Top