Top Method Summary
Options Name Purpose
CHARACTER GetLine (integer) Returns the text of the given row
INTEGER GetLineEndOffset (integer) Returns the file location of the line feed terminating the given row
INTEGER GetLineFeedBefore (integer) Returns the file location of the line feed that precedes the given row
INTEGER GetOffset (integer, integer) Determines the file location of the given row/column
Insert (character, integer) Inserts a string at the given position
ReadFile (character) Reads the given file
Replace (character, integer, integer) Replaces a string at the given position
LOGICAL SaveFile (character) Saves the LONGCHAR contents to a file

Top Constructor Summary
Options Name Purpose
RefactorEditor () Constructor for the RefactorEditor class
RefactorEditor (longchar) Constructor for the RefactorEditor class


Method Detail
Top

CHARACTER GetLine (integer)

Purpose: Returns the text of the given row
Notes: SCL-5825: The line break terminating the row (LF or CR LF) is
not part of the returned text

Parameters:
piRow INTEGER
The text row
Returns CHARACTER
The text of the row
Top

INTEGER GetLineEndOffset (integer)

Purpose: Returns the file location of the line feed terminating the given row
Notes: SCL-5825: When the row is the last one and does not end with a
line break, the location of the last character is returned

Parameters:
piRow INTEGER
The text row
Returns INTEGER
The location of the line feed terminating the row
Top

INTEGER GetLineFeedBefore (integer)

Purpose: Returns the file location of the line feed that precedes the given row
Notes: Returns 0 for the first row

Parameters:
piRow INTEGER
The text row
Returns INTEGER
The location of the line feed preceding the row
Top

INTEGER GetOffset (integer, integer)

Purpose: Determines the file location of the given row/column
Notes:

Parameters:
piRow INTEGER
The text row
piColumn INTEGER
The text column
Returns INTEGER
The location in the file / offet
Top

Insert (character, integer)

Purpose: Inserts a string at the given position
Notes:

Parameters:
pcString CHARACTER
The string to insert
piPosition INTEGER
The position to insert at
Top

ReadFile (character)

Purpose: Reads the given file
Notes:

Parameters:
pcFileName CHARACTER
The name of the file to operate on
Top

Replace (character, integer, integer)

Purpose: Replaces a string at the given position
Notes:

Parameters:
pcString CHARACTER
The string to insert
piPosition1 INTEGER
The position to insert at
piPosition2 INTEGER
The position to insert at
Top

LOGICAL SaveFile (character)

Purpose: Saves the LONGCHAR contents to a file
Notes:

Parameters:
pcFileName CHARACTER
The file name to save to
Returns LOGICAL
Logical value indicating the success


Constructor Detail
Top

RefactorEditor ()

Purpose: Constructor for the RefactorEditor class
Notes:

Top

RefactorEditor (longchar)

Purpose: Constructor for the RefactorEditor class
Notes:

Parameters:
plcString LONGCHAR
The string to operate on


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