SecondBASIC Documentation v3

Home / Function Reference / Mid$()

Mid$()

Description: Returns a string from within a string.

Syntax:

Mid$(<string>,<start>,<length>)

Part Description
<string> Required. The string expression from which the characters are returned.
<start> Required. The start position within the <string>.
<length> Required. The length of the returned string.

Example:

        a$ = "Hello World"
        Print Mid$(a$, 6, 5)