RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrPas Function

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

Pascal
function StrPas(const Str: PChar): string;
C++
AnsiString StrPas(const const char * Str);

SysUtils

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!