ArcBasicDocs

Mid

Part of a string (offset starts at 1).

Mid ( string$,offset[,characters] )

Parameters

string$
the text.
offset
where to start, counting from 1.
characters (optional)
how many characters to take. Leave it out, or give -1, for the rest of the string.

Description

Gives back part of a string, from a position onwards: Mid("ArcBasic", 4, 2) is "Ba". The first character is at position 1. Leave out the number of characters to take everything to the end.

See also