Original String: Hello World
Length: 11
Lower Case: hello world
Upper Case: HELLO WORLD
Left: Hell
Right: orld
Mid: lo Wo
Replace: Hello Friends
Original String: Hello World
Replace: Hello World
Replace: HeLLo WorLd
Reverse: dlroW olleH
Example 2
kw.vbs
s1="hello world"s2=" HELLO WORLD "print"Position "&InStr(1,s1,"world",1)print"Reverse Position "&InStrRev(s2,"world",-1,1)IfStrComp(s1,s2,1)<>1Thenprint"Strings Are Equal"Elseprint"Strings Are Not Equal"EndIfprints2&"\0"printLtrim(s2)&"\0"printRtrim(s2)&"\0"printTrim(s2)&"\0"s=Split(s1," ")ForEachstrinsprintstrNext
Output
Position 7
Reverse Position 15
Strings Are Not Equal
HELLO WORLD \0
HELLO WORLD \0
HELLO WORLD\0
HELLO WORLD\0
hello
world
Dear User, Thank you for visitng KodingWindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.