wad is vbCrLf doing?
Printable View
wad is vbCrLf doing?
Nothing much I saw him the other day at the bar. What are you doing?
Cr stands for Carriage Return
Lf stands for Line Feed
CrLf is pretty much the same as pressing enter in a text document.
There are a bunch of VB6 constants that all start with lower case "vb", including vbCrLf. Most have preferred .NET equivalents in the ControlChars class. See the help topic entitled "VBA Constant Changes in Visual Basic .NET" for details.
ControlChars is legacy too ;) don't use those either.Quote:
Originally Posted by jmcilhinney
In the codebank there is a 100% .Net class that deals with summoning up characters from their ascii codes. See here>>>
http://www.vbforums.com/showthread.php?t=329325
PS easiest way to get the standard equivalent to vbCRLF is to use Environment.Newline