System.SysUtils.StrPas
Delphi
function StrPas(const Str: PAnsiChar): AnsiString;
function StrPas(const Str: PWideChar): UnicodeString;
C++
extern DELPHI_PACKAGE System::AnsiString __fastcall StrPas _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Warning: The ANSI version of StrPas is deprecated. Please use the AnsiStrings unit.
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