HTBasic Help
×
Menu
Index

INDENT

Indents a program to reflect its structure.
 
 INDENT [start-column [,increment]]
 
 
Usage:
INDENT
INDENT 10,5
 
Description:
INDENT is an editing command used to insert spaces after the line numbers and before the leading keywords of a program in order to visually show the structure of the program. The increment value specifies how many spaces to indent each successive structure. The start-column specifies the column to place un-indented lines. The default start-column is seven. The default increment value is two. The INDENT statement will move lines starting with REM or a comment tail (!) but will not move comments appended to other statements with a comment tail.
 
The following statements add a level of indentation: DEF FN, FOR, IF ... THEN, LOOP, REPEAT, SELECT, SUB and WHILE. The following statements are printed one indentation level to the left, but leave the indentation level unchanged: CASE, CASE ELSE, ELSE, EXIT IF, FNEND and SUBEND. The following statements subtract one level of indentation: END IF, END LOOP, END SELECT, END WHILE, NEXT and UNTIL.
 
This statement can only be executed from the keyboard. It cannot be included in a program.
 
See Also: