[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Set length of a string and copy buffer.
Source position: line 0
procedure SetString( |
out S: Shortstring; |
Buf: PChar; |
Len: SizeInt |
); |
out S: AnsiString; |
Buf: PChar; |
Len: SizeInt |
); |
out S: WideString; |
Buf: PWideChar; |
Len: SizeInt |
); |
out S: WideString; |
Buf: PChar; |
Len: SizeInt |
); |
SetStringsets the length of the string Sto Lenand if Bufis non-nil, copies Lencharacters from Bufinto S. Scan be an ansistring, a short string or a widestring. For ShortStrings, Lencan maximally be 255.
None.
SetLength |
|
Set length of a string. |