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
Printable View
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
What?!?!?!?!?
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:
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.Code:For i = 0 to 100
List1.additem i
Next i
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]