Sign in Join
FPDoc Onlineexperiment

TTextStrings.BuildArrays procedure

Member of TTextStringsprotectedIn unit TextStrings

Clears and builds the array with the line ranges for the values in Text.

Declaration

pascal
procedure BuildArrays; virtual

Description

BuildArrays is a method used to clear and build the internal array with the line ranges for the values in Text. BuildArrays detects the number of end-of-line sequences in Text, allocates memory for the dynamic array, and fills the TTextLineRange instances with their values.

BuildArrays is called from methods used to read or write values in the Strings, Objects, or Count properties. It is called when the internal flag that indicates the array is valid has not been set.

See also

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