IDebug.IndentLevel

Syntax

IndentLevel: Integer;

Description

The IndentLevel property determines the indent level in the development environment console. The total indent is determined, using the formula IndentLevel*IndentSize.

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 like this:

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