The Mid function returns a substring of a string.
Syntax 1
|
The Mid function returns a substring of a string. |
|
Mid(string, start) |
|
Arguments: |
|
|
string |
String - A string. |
|
|
start |
Integer - Starting position of the substring. |
Syntax 2
|
The Mid function returns a substring of a string. |
|
Mid(string, start, numChars) |
|
Arguments: |
|
|
string |
String - A string. |
|
|
start |
Integer - Starting position of the substring. |
|
|
numChars |
Integer - Length of the substring. |
Remarks
- Example: Mid("abcdefg", 2, 3) returns "cde".
- Example: Mid("abcdefg", 2) returns "cdefg".
Comments
0 comments
Please sign in to leave a comment.