Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TAnsiStringBuilder.Length

Currentl length of the string buffer.

Declaration

Source position: syssbh.inc line 125

public property TAnsiStringBuilder.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 anough capacity to accomodate the new length.

See also

MaxCapacity

  

Maximum capacity of the string buffer.

Capacity

  

Current capacity of the string buffer.

ERangeError

  

Range check error.


Documentation generated on: Oct 27 2024