Results 1 to 4 of 4

Thread: Conversion

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    I figured it out. All I had to do was let the Print function do it. It automatically add the linefeed. I was putting it in a second time. Thanks for the help.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    I need to insert hex values 0A and 0D into a string and then into a file. What is the best way to do this?

  3. #3
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    I take it you are trying to insert a carriage return and line feed - try using

    String = string + vbcrlf + string...

    that ought to work.

    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    I need to read data from a web-form database file. It puts hex 0D and 0A at the end of each line. I convert the file into a database. When I convert back, I need to write those 2 codes back in at the end of each line. The problem I'm having is that if I simply put a carriage return or linefeed, it seems to put 0A 0D 0A instead. I'm not sure why.

    That actually brings me to another question, when I write back to a file, how can I make it continue at the end of the existing text, I dont' want it to start a new line. Any ideas?

    Open file for Append access read write as freefile

    doesn't work, every entry is a new line.

    [This message has been edited by netSurfer (edited 01-27-2000).]

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