Copies a number of characters starting at a given position in a string.
Source position: strutils.pp line 101
function MidStr( |
const AText: AnsiString; |
const AStart: SizeInt; |
const ACount: SizeInt |
):AnsiString; |
const AText: WideString; |
const AStart: SizeInt; |
const ACount: SizeInt |
):WideString; |
AText |
|
String to copy characters from. |
AStart |
|
Position (in characters) to start copying from. |
ACount |
|
Number of characters to copy. |
Resulting string.
AText |
|
String to copy characters from. |
AStart |
|
Position (in characters) to start copying from. |
ACount |
|
Number of characters to copy. |
MidStr returns a string containing the first ACount bytes from the string AText starting at position AStart. If AStart+ACount is larger than the length (in characters) of AText, only as many characters as available are returned. If AStart is less than 1 or larger than the length of AText, then no characters are returned.
This function is equivalent to the standard Copy function, and is provided for completeness only.
None.
|
Copies Count characters starting at the left of a string. |
|
|
Returns a number of characters copied from a given location in a string. |
|
|
Copy a given number of characters, counting from the right of a string. |
|
|
Copies a number of characters starting at a given position in a string. |