Is there a substring()
function in VBScript similar to Java's string.substring()
?
Does VBScript have a substring() function
stringvbscript
Related Topic
- Python – Reverse a string in Python
- C# – Multiline string literal in C#
- Python – How to trim whitespace
- Javascript – How to check whether a string contains a substring in JavaScript
- Python – Does Python have a string ‘contains’ substring method
- Python – How to find all occurrences of a substring
- Java – Why does this code using random strings print “hello world”
Best Answer
Yes,
Mid
.The first parameter is the source string, the second is the start index, and the third is the length.
@bobobobo: Note that VBScript strings are 1-based, not 0-based. Passing 0 as an argument to
Mid
results in "invalid procedure call or argument Mid".