Function call
|
Val
|
Start
|
Length
|
Result
|
Notes
|
---|---|---|---|---|---|
Mid(Val, Start, Length)
|
24 St John's Road, Barnes
|
10
|
15
|
's Road, Barnes
|
The return value is the 15 characters following the 10th character in the supplied string.
|
Mid(Val, Start, Length)
|
{4,2,9}
|
2
|
1
|
{9}
|
The return value is the category following the second category in the supplied category list.
|
Mid(Val, Start, Length)
|
{4,2,9}
|
6
|
3
|
{}
|
The return value is an empty category list, because Start is greater than the number of categories in the supplied category list.
|
Mid(Val, Start, Length)
|
{4,2,9}
|
0
|
2
|
{4,2}
|
The return value is the first two categories in the supplied category list.
|
Mid(Val, Start, Length)
|
{4,2,9}
|
0
|
|
{4,2,9}
|
The return value is all characters from Start to the end of the string.
|
Mid(Val, Start, Length)
|
Split("The quick brown fox")
|
1
|
2
|
{quick,brown}
|
The return value is the two elements following the first element in the supplied array. For more information, see Split.
|