mid$

Syntax

result = MID$(text, position, length)

Arguments

position, length: integer

result, text: text

Meaning

Returns length of number of characters from text, starting at position. The position is "1-based", so mid$('tksrf', 1, 1) retrieves the first character: 't'.

Example

result = MID$('ABcdeFGH', 2, 3)

Result

result is: 'Bcd'