Returns a specified number of characters from the left side of a string. If length is less than 1, the empty string is returned.
If length is greater than or equal to the number of characters in string, the entire string is returned.
Syntax: |
---|
value = LeftCharacters( inputString, length ) OR value = Left( inputString, length ) ' Short form usage: "Left" |
Parameter: |
Description: |
---|---|
inputString |
String from which to extract the left-side characters. |
length |
Number of characters on the right side of text to extract. |
value |
Extracted characters. |
Example: |
---|
value = LeftCharacters( "Hello", 3 ) ' Returns "Hel"
Results:See example comments. |
Links: |
---|
See Also: |
Edit Time: 9/18/2020 1:48:11 PM |
Topic ID#: 32 |