|
-
May 28th, 2000, 07:49 AM
#1
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
-
May 28th, 2000, 07:58 AM
#2
Fanatic Member
-
May 28th, 2000, 08:21 AM
#3
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.
-
May 28th, 2000, 09:27 AM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|