~

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 07 May 2010 09:59:52 -0500

Each OS has its own notion of a newline. Windows uses CR/LF (ASCII 13/10 or 
0x0D/0x0A), simply CR on Unix variants, and LF on OSX (or so I think). I
don't know VB, but there may be a newline constant (or `\n'), which attempts to 
use the correct delimiter based on the current OS.

On Fri, 7 May 2010 10:55:27 +0200, Darko Pogaèiæ wrote:
> You can use vbCrLf constant, but I am not sure which ascii value represents
> line by vbCrLf constant, but I am using chr() function, and representing
> ascii value 13, its ascii symbol for new line recognized by microsoft Word.
> 
> Also ascii 10 gives a new lin, but I am not sure wich ascii symbol is for
> new line given by vbCrLf constant.
> 
>  
> 
>   _____  
> 
> From: programmingblind-bounce@xxxxxxxxxxxxx
> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Bryan Schulz
> Sent: Friday, May 07, 2010 3:32 AM
> To: programmingblind@xxxxxxxxxxxxx
> Subject: Re: Line Formatting
> 
>  
> 
> hi,
> 
>  
> 
> are people using this now instead of vbcrlf?
> 
>  
> 
> Bryan Schulz
> 
> ----- Original Message ----- 
> 
> From: Celia Rodriguez <mailto:celia-rodriguez@xxxxxxxxxxxxx>  
> 
> To: programmingblind@xxxxxxxxxxxxx 
> 
> Sent: Wednesday, May 05, 2010 10:53 PM
> 
> Subject: RE: Line Formatting
> 
>  
> 
> Hi,
> 
>  
> 
> I think this might help.
> 
>  
> 
>             TextBox.Text += your string + "\r\n";
> 
>  
> 
> The "\r\n" will give you a new line.
> 
>  
> 
> Hope it helps.
> 
> Celia
> 
>  
> 
> From: programmingblind-bounce@xxxxxxxxxxxxx
> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Darko Pogacic
> Sent: Tuesday, May 04, 2010 11:41 AM
> To: programmingblind@xxxxxxxxxxxxx
> Subject: Line Formatting
> 
>  
> 
>             Hi there!
> 
> I am interesting how to make Visual Basic code to make a new line after a
> number of characters (EG:5).
> 
> I have a RichTextBox control, and text inside.
> 
> I want to make a Visual Basic 6 code, wich o     n each 30 characters, puts
> the rest of text into a new line.
> 
>  

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: