DisposeStr

Dispose an ansistring from the heap.

Declaration

Source position: sysstrh.inc line 68

  procedure DisposeStr(S: PString);  Overload;
  procedure DisposeStr(S: PShortString);  Overload;

Description

DisposeStr removes the dynamically allocated string S from the heap, and releases the occupied memory.

This function is provided for Delphi compatibility only. AnsiStrings are managed on the heap and should be preferred to the mechanism of dynamically allocated strings.

For an example, see DisposeStr .

Errors

None.

See also

Name Description
AppendStr Append one ansistring to another.
AssignStr Assigns an ansistring to a null-terminated string.
NewStr Allocate a new ansistring on the heap.

results matching ""

    No results matching ""