Mid()

Top  Previous  Next

Mid() - Crops a string

Description

The Mid() function returns an optional number of characters of the supplied string starting from the specified start position.

Mid(string, start[, length])

Parameters
The string is from where the characters are taken.

The start parameter specifies the start position in the string.

The optional length parameter specifies the number of characters to return.

Example

MyString = Mid("Welcome",3,3) 'returns 'lco'