[Overview][Constants][Types][Procedures and functions] |
Returns a number of characters copied from a given location in a string
Source position: strutils.pp line 71
function AnsiMidStr( |
const AText: AnsiString; |
const AStart: Integer; |
const ACount: Integer |
):AnsiString; |
AText |
|
String from which to copy |
AStart |
|
1-based location in the string where to copy from. |
ACount |
|
Number of characters to copy. |
The resulting string
AnsiMidStrreturns ACountcharacters from AText, starting at position AStart. If AStart+ACountis larger than the length of AText, only as much characters as available in AText(starting from AStart) will be copied. If ACountis zero or negative, no characters will be copied. The characters are counted as characters, not as Bytes.
This function corresponds to the Visual Basic MidStrfunction.
None
|
Copies a number of characters starting at the left of a string |
|
|
Copies a number of characters starting at the right of a string |
|
|
Copies Count characters starting at the left of 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. |
|
|
Copies Count characters starting at the left of a string. |
|
|
Copy a given number of characters (bytes), counting from the right of a string. |
|
|
Copies a number of characters starting at a given position in a string. |