Show: Object Pascal C++
Display Preferences

System.SysUtils.NewStr

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

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 Object Pascal operators instead. The string allocation will be performed automatically.

Personal tools
Translations