Belongs to : Function


The AnsiMidStr returns a string comprising a sequence of characters from a source string.

It attempts to return Count characters from position Start of the Source.

If Count exceeds the remaining size of the source, the whole of the remainder of the source is returned.

Strings start with index = 1 (arrays start with 0)

Example code