# Mid$

Result = Mid$ ( String , Start [ , Length ] )

Returns a substring containing the Length characters from the position Start.

If Length is not specified, everything from the position Start is returned.

If Length is negative, everything from the position Start except the (- Length ) last characters is returned.

Examples

    PRINT Mid$("Gambas", 3, 2)

    mb

    PRINT Mid$("Gambas", 4)

    bas

    PRINT Mid$("Gambas", 2, -1)

    amba

See also

LTrim$ | Left$ | Lower$ / LCase$ | Mid$ | RTrim$ | Replace$ | Right$ | Space$ | Split | String$ | Subst$ | Trim$ | Upper$ / UCase$