Results 1 to 6 of 6

Thread: [RESOLVED] Wrap Character

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    322

    Resolved [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!

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    322

    Re: Wrap Character

    Thank's. But why the numbers 13 and 10 in the sentences Chr$(13) + Chr(10)??? What do they represent?

  4. #4
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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)

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    322

    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
  •  



Click Here to Expand Forum to Full Width