String Functions (Len, Left, Right, Mid)

<%
dim myvar
myvar = "1234567"

response.Write(myvar & " is the variable<br/>")
response.Write(len(myvar) & " characters long<br/>")
response.Write(left(myvar,3) & " are the <b>left</b> three characters<br/>")
response.Write(right(myvar,3) & " are the <b>right</b> three characters<br/>")
response.Write(mid(myvar,3,3) & " : Mid(MyString, StartPos, NumChars)<br/> %>

Output:

1234567 is the variable
7 characters long
123 are the left three characters
567 are the right three characters
345 : Mid(MyString, StartPos, NumChars)