How variable expansion question? How?

T

Tec92407

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?
 
M

Marshall Barton

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 & """"
 
Top