Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript Trim function


May 13, 2021 VBScript


Table of contents


VBScript Trim function

The VBScript Trim function returns a copy of the string that removes the leading space or the end space.


VBScript Trim function Complete VBScript reference manual

The Trim function removes spaces on both sides of the string.

Tip: See LTrim and RTrim functions.

Grammar

Trim(string)

parameter describe
string Required.String expressions.
<script type="text/vbscript">

fname=" Jack "
document.write("Hello" & Trim(fname) & "and welcome.")

</script>

The above example output results:

HelloJackand welcome.

Try it out . . .

VBScript Trim function Complete VBScript reference manual