Parameters
- str
- Required. String expression from which characters are returned.
- start
- Required. Integer expression. Starting position of the characters to return. If start is greater than the number of characters in str, the Mid function returns a zero-length string (""). start is one based.
- Length
- Optional. Integer expression. Number of characters to return. If omitted or if there are fewer than Length characters in the text (including the character at position start), all characters from the start position to the end of the string are returned.
Return Value
Returns a string containing a specified number of characters from a string.