By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,557 Members | 1,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,557 IT Pros & Developers. It's quick & easy.

Carriage Return and Line Feed Syntax

P: n/a
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
Feb 16 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
vbCrLf

or

ControlChars.CrLf
"Captain Frog" <fa****@hotmail.com> wrote in message
news:uC**************@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

Feb 16 '06 #2

P: n/a
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
"Captain Frog" <fa****@hotmail.com> schreef in bericht
news:uC**************@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

Feb 16 '06 #3

P: n/a
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
Feb 16 '06 #4

P: n/a
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
"Captain Frog" <fa****@hotmail.com> wrote in message
news:uC**************@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

Feb 16 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.