VBScript Basics, Part 43 | LCase – UCase – Trim

VBScripting (.vbs) Basic tutorial on how to use the LCase, & UCase to capitalize or make a sentence/word lowercase. Also how to trim off extra spaces by using the Trim commands.

Code Example:

Option Explicit
Dim a, b

a = ” TEST ”
MsgBox “Far” & RTrim(a) & “Close”
MsgBox “Close” & LTrim(a) & “Far”
MsgBox “Close” & Trim(a) & “Close”

b = “16618SomEthingSeCRet68433”
If InStr(LCase(b), “somethingsecret”) Then
MsgBox “yes”
MsgBox “no”
End If