The string Trim method is used to remove all leading and trailing whitespace characters from the specified string object in visual basic. Using the Trim() method, we can also remove all occurrences of specified characters from the start and end of the current string.
What is the function of trim?
FormulaDescriptionResult=TRIM(” First Quarter Earnings “)Removes leading and trailing spaces from the text in the formula (First Quarter Earnings)First Quarter Earnings
How do I trim a string in VBScript?
- Trim. The Trim Function removes both the Leading and Trailing blank spaces of the given input string.
- Syntax. Trim(String)
- Example. <! DOCTYPE html> <html> <body> <script language = “vbscript” type = “text/vbscript”> var = “Microsoft VBScript” document.