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("Indent size: " + 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:

Unit execution started

      Current indent level: 3

      Indent size: 2 space(s)

        Current indent level: 4

          Current indent level: 5

        Return to level: 4

      Return to level: 3

Unit execution finished

See also:

IDebug