Skip to main content Skip to complementary content

Mid - script and chart function

Mid() returns the part of the string starting at the position of the character defined by the second argument, with the string length defined by the third argument, or including the rest of the string if the third argument is omitted. The first position in the string is numbered 1.

Syntax:  

Mid(text, start[, count])

Return data type: string

Arguments:  

Argument Description
text The original string.
start Integer defining the position of the first character in text to include.
count Defines the string length of the output string. If omitted, all characters from the position defined by start are included.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!