Sign in Join
FPDoc Onlineexperiment

TAnsiStringBuilder.Length property

Member of TAnsiStringBuilderpublicIn unit sysutils

Currentl length of the string buffer.

Declaration

pascal
property &Length: Integer read GetLength write SetLength;

Description

Length can be used to get or set the current length (in characters) of the string buffer. When setting the length, the new length is checked whether it lies within the maximum capacity ( MaxCapacity) for the string buffer: if not, an ERangeError exception is raised. The capacity of the buffer will be adjusted so the buffer has enough capacity to accommodate the new length.

See also

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