Carriage Return and Line Feed Syntax

C

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
 
C

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
 
A

Andrew Morton

Captain said:
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
 
C

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top