Mid or Mid$

<< Click to Display Table of Contents >>

Navigation:  String functions >

Mid or Mid$

Description

Returns a specified number of characters from a string.

Syntax

Mid(string, start[, length])

 

Parameters

Part


Description

string

String

String expression from which characters are returned.

start

Integer

Character position in string at which the part to be taken begins..

length

Integer

Number of characters to return. If omitted or if there are fewer than length characters in the text (including the character at start), all characters from the start position to the end of the string are returned.