mid Function

Function:

Returns len characters from a string sourcestr starting from position pos.

Syntax:

mid(byref sourcestr as string, frompos as byte, len as byte) as string

See Also:

left, right


Part

Description

sourcestr

String from which to take the middle section.

frompos

First character to take. The leftmost character is counted to be at position 1.

len

Number of characters to take.


Examples

Tibbo BASIC
s = mid("ABCDE",2,3) ' result will be 'BCD'.

mid Function

Examples