VBS get string (truncation string)

Time:2019-11-10

Example code

X = "what kind of website is developepaer" 
Y = right (x, len (x) - 1) 'gets 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) ‘gets the first character

lenGet the length of the string

len(x) 

Split function split string

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

More usage can be found in this article: https://www.jb51.net/article/4586.htm

Recommended Today

Web API records the type of server address obtained by deploying IIS

There are many types of server address. The following records are available 1、HttpContext.Current.Server.MapPath(“~/File”) The returned value is D: \ 3project \ code \ mobileservice \ webapi \ file. Local service: this path is the root directory of the disk address where the project is located. Deployment server: the disk folder where the deployment file is […]