VBS get string (truncation string)


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


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

Thinking about value object

useValue objectThe benefits of the model. Generally, we use get and set methods to manipulate the properties in a class, which are very common and easy to use. class MyClass { public: MyClass(); void setProperty1(const QString &value); QString getProperty1() const; void setProperty2(const QString &value); QString getProperty2() const; }    but we are not careful or […]