Hello!
I read line by line (line input) the data of a file stored in (C:) and then put it
in a RichTextBox. I have some questions!
1)What is a Wrap Character?
2)What is the meaning of this line
Wrap$ = Chr$(13) + Chr$(10)
Thank's!
Printable View
Hello!
I read line by line (line input) the data of a file stored in (C:) and then put it
in a RichTextBox. I have some questions!
1)What is a Wrap Character?
2)What is the meaning of this line
Wrap$ = Chr$(13) + Chr$(10)
Thank's!
It's quite useless - you can use vbCrLf or better vbNewLine built in constants instead but that's basically what that variable means.
Thank's. But why the numbers 13 and 10 in the sentences Chr$(13) + Chr(10)??? What do they represent?
they represent Carriage Return (13) and Line Feed (10) - if you don't know what either of those are then see if you can get someone to dig out a typewriter for you (or google them)
They are ASCII character codes - 13 is for "Carraige Return" and 10 is "Line Feed". Together they act as a 'move to a new line' marker (like pressing Enter in Notepad).
Wrap$ will contain exactly the same as vbCrLf or vbNewLine, but will waste memory and processor time.
Thank's a lot to all of you!