Kessyus

Hello fellows,
Good night.

I have a question, I know its a bit stupid but I really need help with this...

Well, when I try to make the command (for example):

Print #1, "test" & vbnewline & ""test"" & vbnewline & ""[test]""

Visual Basic doesn't understand what I want... And always change my code to:

Print #1, "test" & vbnewline & ""; test; "" & vbnewline & ""; [test]; ""

And I really need that the command makes a txt that I'm building with the information above:
test
"test"
"[teste]"

Theres a way for me to make VB ignore it and make a file.txt with that text

Thanks for reading
/Kessyus.



Re: Visual Basic Language How to use the command print...

BlueMikey

Kessyus wrote:
Print #1, "test" & vbnewline & ""test"" & vbnewline & ""[test]""


You don't have enough quotation marks. To get:

"test"

Your code has to be:

"""test"""




Re: Visual Basic Language How to use the command print...

spotty

Try the following

Print #1, "test" & vbNewLine & """test""" & vbNewLine & """[test]"""

So basically if you want the quote to appear as a literal character then type 3 double quotes - ie """