RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.NewStr Function

Allocates a string on the heap.

Pascal
function NewStr(const S: AnsiString): PAnsiString; deprecated;
C++
PAnsiString NewStr(const AnsiString S);

NewStr allocates a new string on the heap. Do not use NewStr in new applications. This function is provided for backward compatibility only.  

Use normal Delphi operators instead. The string allocation will be performed automatically. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!