IDebug.Unindent

Syntax

Unindent;

Description

The Unindent method places an indent on the previous level.

Example

Sub Main;

Begin

Debug.IndentLevel := 3;

Debug.IndentSize := 2;

Debug.WriteLine("Current indent: " + Debug.IndentLevel.ToString);

Debug.WriteLine("Indent size: " + Debug.IndentSize.ToString + " space(s)");

Debug.Indent;

Debug.WriteLine("Current indent: " + Debug.IndentLevel.ToString);

Debug.Indent;

Debug.WriteLine("Current indent: " + Debug.IndentLevel.ToString);

Debug.Unindent;

Debug.WriteLine("One level back: " + Debug.IndentLevel.ToString);

Debug.Unindent;

Debug.WriteLine("One level back: " + Debug.IndentLevel.ToString);

End Sub Main;

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