Home All Groups Group Topic Archive Search About

Carriage Return and Line Feed Syntax

Author
16 Feb 2006 4:19 AM
Captain Frog
Hi All,

Could anyone tell or point me to the correct syntax for a carriage return
and line feed? I've tried vocal in a fixed size array and all I get is a
single line text box even though the multiline property is set to true VB
Express 05. Thanks in advance,

Regards,
Robert

Author
16 Feb 2006 5:07 AM
Terry Olsen
vbCrLf

or

ControlChars.CrLf


Show quoteHide quote
"Captain Frog" <fay***@hotmail.com> wrote in message
news:uCYAzArMGHA.3408@TK2MSFTNGP12.phx.gbl...
> Hi All,
>
> Could anyone tell or point me to the correct syntax for a carriage return
> and line feed? I've tried vocal in a fixed size array and all I get is a
> single line text box even though the multiline property is set to true VB
> Express 05. Thanks in advance,
>
> Regards,
> Robert
>
Author
16 Feb 2006 7:16 AM
Cor Ligthert [MVP]
Hi,

In addition to Terry

Or as the designer does it in Version 2005
chrW(13) & chrW(10)

I use forever the true VB Net code

VBCRLF

I hope this helps,

Cor


Show quoteHide quote
"Captain Frog" <fay***@hotmail.com> schreef in bericht
news:uCYAzArMGHA.3408@TK2MSFTNGP12.phx.gbl...
> Hi All,
>
> Could anyone tell or point me to the correct syntax for a carriage return
> and line feed? I've tried vocal in a fixed size array and all I get is a
> single line text box even though the multiline property is set to true VB
> Express 05. Thanks in advance,
>
> Regards,
> Robert
>
Author
16 Feb 2006 8:37 AM
Andrew Morton
Captain Frog wrote:
> Could anyone tell or point me to the correct syntax for a carriage
> return and line feed? I've tried vocal in a fixed size array and all
> I get is a single line text box even though the multiline property is
> set to true VB Express 05. Thanks in advance,

There's also Environment.NewLine, which I suppose would generate different
characters depending on the platform if/when the .NET framework is
implemented on them.

Andrew
Author
16 Feb 2006 9:48 PM
Captain Frog
Howdy All,

Thanks for your feedback, it is very helpful. I learned something new.
Hopefully, I'll remember it later on when I REALLY need to. In my original
post, I said I used vocal. I mistyped. I actually used vbCrLf. The error in
my program boiled down to a variable I had mistyped. I had typed a variable
(i = 1), when it should have been (i + 1). That and resizing the form did
wonders. Thanks again for the feedback and maybe one morning soon, I'll be a
real programmer.

Regards,
Robert
Show quoteHide quote
"Captain Frog" <fay***@hotmail.com> wrote in message
news:uCYAzArMGHA.3408@TK2MSFTNGP12.phx.gbl...
> Hi All,
>
> Could anyone tell or point me to the correct syntax for a carriage return
> and line feed? I've tried vocal in a fixed size array and all I get is a
> single line text box even though the multiline property is set to true VB
> Express 05. Thanks in advance,
>
> Regards,
> Robert
>