VBS get string (intercept string)

Time:2021-10-27

Example code

?
1
2
3
x="What kind of website is developeppaper?"
y = right(x, len(x)-1) 'get all characters after the first character
msgbox y

Introduction to the functions used in the code

leftFunction to get the character to the left of the string

X = left (x, 1) ‘get the first character

lenGets the length of the string

len(x) 

The split function splits a string

x = “1,2,3”
split(x, ‘,’)

See this article for more usage:http://www.zzvips.com/article/78512.html