Answers for "vbs trim"

VBA
0

vbscript Trim

' The Trim function removes spaces on both sides of a string.

name=" Steve "
response.write("Hello" & Trim(name) & "and welcome.")
' Output: HelloSteveand welcome.

' There are also LTrim and RTrim for right or left removal of spaces.

response.write("Hello" & LTrim(fname) & "and welcome. <br>")
response.write("Hello" & RTrim(fname) & "and welcome.")
' Output: HelloSteve and welcome.
' 		  Hello Steveand welcome.
Posted by: Guest on January-05-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language