Returns a specified number of characters from the middle of a string.
Syntax: |
---|
value = MiddleCharacters( inputString, start, length ) OR value = Mid( inputString, start, length ) ' Short form usage: "Mid" |
Parameter: |
Description: |
---|---|
inputString |
String from which to copy the characters |
start |
Starting character position from which to start the character copying First character in the text is considered character 1. |
length |
Number of characters to copy. |
value |
Copied characters. |
Example: |
---|
value = MiddleCharacters( "Hello", 2, 3 ) ' Returns "ell"
Results:See example comments. |
Links: |
---|
See Also: |
Edit Time: 9/18/2020 1:49:02 PM |
Topic ID#: 34 |