What is the newline character in VB? I know in C++ is "\n"
Printable View
What is the newline character in VB? I know in C++ is "\n"
You can use vbCrLf (carridge return line feed), vbCr (Carridge return) or vbLf (linefeed).
You can use them like this
strTest = "This is a test" & vbcrlf & "This is a new line"
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
vbNewLine
David Paulson
... and you can also use:
mystring = "aaa" & chr$(13) & chr$(10) & "bbb"
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.