System.AnsiStrings.NewStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function NewStr(const S: AnsiString): PAnsiString;

C++

extern DELPHI_PACKAGE System::PAnsiString __fastcall NewStr _DEPRECATED_ATTRIBUTE0 (const System::AnsiString S);

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Warning: NewStr is deprecated.

Allocates a string on the heap.

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.