Sign in Join
FPDoc Onlineexperiment

TTextStrings.ClearArrays procedure

Member of TTextStringsprotectedIn unit TextStrings

Clears the internal array of line ranges used in the component.

Declaration

pascal
procedure ClearArrays

Description

ClearArrays is a method used to free resources allocated to the internal array with the line ranges for the component. ClearArrays frees memory allocated for the TTextLineRange instances in the array, and sets the references to Nil.

The internal validity flag and the line counter are both reset to indicate that the array has not not been allocated.

ClearArrays is called from the BuildArrays, Clear, and AddStrings methods.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.