|
-
Nov 6th, 2006, 10:30 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Wrap Character
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!
-
Nov 6th, 2006, 10:53 AM
#2
Re: Wrap Character
It's quite useless - you can use vbCrLf or better vbNewLine built in constants instead but that's basically what that variable means.
-
Nov 6th, 2006, 11:22 AM
#3
Thread Starter
Hyperactive Member
Re: Wrap Character
Thank's. But why the numbers 13 and 10 in the sentences Chr$(13) + Chr(10)??? What do they represent?
-
Nov 6th, 2006, 12:01 PM
#4
Re: Wrap Character
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)
-
Nov 6th, 2006, 12:07 PM
#5
Re: Wrap Character
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.
-
Nov 6th, 2006, 12:37 PM
#6
Thread Starter
Hyperactive Member
Re: Wrap Character
Thank's a lot to all of you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|