Unit 'pascodegen' Package
[Overview][Constants][Types][Classes][Index] [#fcl]

TPascalCodeGenerator.AddLn

Add line to source code with current indentation

Declaration

Source position: pascodegen.pp line 91

public procedure TPascalCodeGenerator.AddLn(

  const aLine: string

);

procedure TPascalCodeGenerator.AddLn(

  const TheLines: array of string

);

procedure TPascalCodeGenerator.AddLn(

  const TheLines: TStrings

);

procedure TPascalCodeGenerator.AddLn(

  const Fmt: string;

  Args: array of Const

);

Arguments

aLine

  

Single line to add

Arguments

TheLines

  

Multiple lines to add

Arguments

TheLines

  

Multiple lines to add

Arguments

Fmt

  

Format string

Args

  

Format arguments

Description

AddLn adds one or more lines to the generated source code with the current indentation level applied. It supports adding single lines, arrays of strings, string lists or formatted strings. Each line is prefixed with the current indentation.

See also

TPascalCodeGenerator.Indent

  

Increase indentation level

TPascalCodeGenerator.Undent

  

Decrease indentation level

TPascalCodeGenerator.Source

  

Generated source code string list


Documentation generated on: Dec 19 2025