Announcement

Collapse
No announcement yet.

Blank Line in Posted Source Code Test

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Blank Line in Posted Source Code Test

    Greetings!

    I've posted a few bits of code recently and I've noticed that these forums will maintain most of the formatted code; but, removes the blank lines. Please, forgive my short test here or feel free to post suggestions.

    Code:
    FUNCTION Date2Dos(BYVAL TempDate AS STRING) PUBLIC AS WORD
    'HTML tag on next line
    <BR>
      DIM Month   AS INTEGER
      DIM Day     AS INTEGER
      DIM Year    AS INTEGER
    'Just a few spaces on next line
          
      SplitDate TempDate$, Month, Day, Year
    'We'll try two empty lines
    
    
      FUNCTION = ((Year - 1980) * 512) + (Month * 32) + Day
    'A different HTML tag
    <P>
    END FUNCTION

    ------------------
    Don Ewald
    mailto:[email protected][email protected]</A>
    Donnie Ewald
    [email protected]

  • #2
    Okay, it looks like we can either enter two blank lines to represent one blank line or you can enter a handful of spaces " ".

    Live and learn.

    ------------------
    Don Ewald
    mailto:[email protected][email protected]</A>
    Donnie Ewald
    [email protected]

    Comment


    • #3
      Greetings Don, i believe the forum strips lines if they contain no characters (eg. just a carriage return), as putting a single space character in between each function has always worked for me
      eg.
      Function One
      End Function
      '<- space char
      Function Two
      etc
      'and another space here
      Best regards,
      Wayne



      ------------------
      -

      Comment

      Working...
      X