JCL Help:StrLeft@AnsiString@SizeInt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the Count leftmost characters from the string.


Pascal

 function StrLeft(const S: string; Count: SizeInt): string;
function StrLeft(const S: AnsiString; Count: SizeInt): AnsiString;


Parameters

Parameters Description
const S: string The string from which to copy.
Count: SizeInt The number of characters to copy.


Return Value

The Count leftmost characters from S.


Description

StrLeft returns the Count number of leftmost characters from the supplied string. Note that if the supplied string contains fewer than Count characters, the function returns the entire string.


See Also

StrRight


About

Unit

JclAnsiStrings


Donator

Anthony Steele


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page