Reading spaces and line breaks

Results 1 to 2 of 2

Thread: Reading spaces and line breaks

  1. #1
    Pankaj Jain Guest

    Default Reading spaces and line breaks

    i&#039;m trying to insert a resume&#039;s data in a field, it gets inserted perfectly well, it even has the spaces and all. but when i read into a recordset and display it ignores all the spaces and line breaks. it concatenates everything in that field.<BR><BR>instead of inserting in database i tries to create a textfile and writing this resume in that, when i opened that file in notepad, everything was just as it should be but again when i opend it in reading mode and used (readline) it gave the same problem, everything concatenated, spaces ignored.<BR><BR>then i used replace(str," ", "&nbsp;")<BR><BR>but even that didn&#039;t work, can u tell me how do i recognize spaces and line breaks, it&#039;s urgent<BR><BR>thanks

  2. #2
    Join Date
    Dec 1969

    Default Do it this way, you are on the right track...

    replace (string, vbcr, "&lt;br&gt;")<BR>replace (string," ","&nbsp&nbsp")<BR><BR>Replace the vbcr (carriage return) with a br tag, and replace every spot where there are two spaces side by side to two nbsp tags, that should fix it for you.<BR><BR>-- Whol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts