IDebug.Indent

Syntax

Indent;

Description

The Indent method places an indent on the next level.

Example

Sub UserProc;
Begin
    Debug.IndentLevel := 
3;
    Debug.IndentSize := 
2;
    Debug.WriteLine(
"Current indent level: " + Debug.IndentLevel.ToString);
    Debug.WriteLine(
"Size of one indent: " + Debug.IndentSize.ToString + " space(s)");
    Debug.Indent;
    Debug.WriteLine(
"Current indent level: " + Debug.IndentLevel.ToString);
    Debug.Indent;
    Debug.WriteLine(
"Current indent level: " + Debug.IndentLevel.ToString);
    Debug.Unindent;
    Debug.WriteLine(
"Return to level: " + Debug.IndentLevel.ToString);
    Debug.Unindent;
    Debug.WriteLine(
"Return to level: " + Debug.IndentLevel.ToString);
End Sub UserProc;

After executing the example the data will be displayed as follows:

Module execution started

      Current indent: 3

      Indent size: 2 space(s)

        Current indent: 4

          Current indent: 5

        One level back: 4

      One level up: 3

Module execution finished

See also:

IDebug