Top Method Summary
Options Name Purpose
FlushUsingBlock (longchar, character, logical) Emits the currently buffered USING block to the result longchar, sorted by namespace and with FROM phrases vertically aligned
LONGCHAR FormatUsingStatements (longchar) Reformats the USING statements in the given source code so that they are sorted alphabetically and their FROM phrases are aligned vertically
LOGICAL IsUsingLine (character) Returns whether the given line is a USING statement


Method Detail
Top

FlushUsingBlock (longchar, character, logical)

Purpose: Emits the currently buffered USING block to the result longchar,
sorted by namespace and with FROM phrases vertically aligned
Notes: Helper for FormatUsingStatements. Called once per contiguous
run of USING lines and clears the buffer after emitting

Parameters:
plcResult LONGCHAR
The result longchar being built (appended to)
pcEol CHARACTER
The line ending sequence to use between emitted lines
plFirstLineOut LOGICAL
Flag indicating that no line has been emitted yet; reset to FALSE after the first line is written
Top

LONGCHAR FormatUsingStatements (longchar)

Purpose: Reformats the USING statements in the given source code so that
they are sorted alphabetically and their FROM phrases are
aligned vertically
Notes: Each contiguous block of USING lines in the source is sorted and
aligned independently. Lines that are not USING lines are passed
through unchanged. The original line endings (CRLF or LF) of the
source are preserved

Parameters:
plcContent LONGCHAR
The original source code
Returns LONGCHAR
The reformatted source code
Top

LOGICAL IsUsingLine (character)

Purpose: Returns whether the given line is a USING statement
Notes: ABL is case insensitive, so "USING ", "Using " and "using "
all match

Parameters:
pcLine CHARACTER
The line to inspect
Returns LOGICAL
Logical value indicating if the line starts with "using " after trimming leading whitespace


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       19.09.2026 10:18:52