JCL Help:StrChopRight@AnsiString@SizeInt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Removes the last N characters from the string.


Pascal

 function StrChopRight(const S: string; N: SizeInt): string;
function StrChopRight(const S: AnsiString; N: SizeInt): AnsiString;


Parameters

Parameters Description
const S: string The source string from which the characters are removed.
N: SizeInt The number of characters to remove from the end of the string.


Return Value

The string with the last N characters cut off. Note that when N is larger than the string length, the result is an empty string.


Description

StrChopRight removes the last N characters from the specified string and returns the resulting string.


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