Results 1 to 4 of 4

Thread: Indenting?

  1. #1
    Guest
    Anyway to indent text in a textbox?
    Say you had something like this:

    For i = 0 to 100
    List1.additem i
    Next i

    And you wanted to make it look like this (indented):

    Code:
    For i = 0 to 100
    List1.additem i
    Next i

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    What?!?!?!?!?

  3. #3
    Guest
    See how awful code looks when its like:

    For i = 0 to 100
    List1.additem i
    Next i

    I want to make it look nicer:

    Code:
        For i = 0 to 100
        List1.additem i
        Next i
    Now its indented. How do I do that with any text that's entered? I can't use spaces cuz it won't work, but just remove the lines for the "code" area and its indented.

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554

    Lightbulb Use Space$() or CHR$()

    The two most common ways are spaces and tabs

    Use the SPACE$(Number of spaces to insert) keyword
    Use the CHR$(9) - think its nine i cant remeber keyword

    like

    PRINT #1, SPACE$(4) & Text1.Text
    PRINT #1, CHR$(9) & Text1.Text

    DocZaf
    {;->

    If its not 9 its 8 or 10
    i mean the CHR$ code/value

    [Edited by Zaf Khan on 05-28-2000 at 10:32 PM]

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