Is there a substring() function in VBScript similar to Java's string.substring()?
views:
810answers:
2
+5
A:
Yes, Mid.
Dim sub_str
sub_str = Mid(source_str, 10, 5)
The first parameter is the source string, the second is the start index, and the third is the length.
Tmdean
2010-02-08 16:58:27
+2
A:
As Tmdean correctly pointed out you can use the Mid() function. The MSDN Library also has a great reference section on VBScript which you can find here:
Kev
2010-02-08 17:05:56