Show: Delphi C++
Display Preferences

System.SysUtils.StrPas

From XE2 API Documentation
Jump to: navigation, search

Delphi

function StrPas(const Str: PAnsiChar): AnsiString;
function StrPas(const Str: PWideChar): UnicodeString;

C++

extern PACKAGE System::AnsiString __fastcall StrPas(const char * Str)/* overload */;

Contents

Properties

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

Description

Converts null-terminated string to an AnsiString (long string).

This function is provided for backwards compatibility only. To convert a null-terminated string to an AnsiString or native Delphi language string, use a typecast or an assignment.

See Also

Code Examples


Personal tools
Previous Versions
Translations