Trim

Description:
Remove leading and trailing spaces from a string.

Format:
Trim (string Source)

Parameters:

Stringr

Source

Source string to trim.

Return Value:

String

Result

Trimmed string.

Usage:
Use this function to remove any leading or trailing spaces from string. Trim does not remove other 'whitespace' characters such as the Tab character.

Example 1:
Trim the leading and trailing spaces from a string.

String strPhrase
String strResult

// strPhrases will not be equal to strResults
strPhrases = ' Super Widgets, Long Widgets, Soft Widgets '
strResult = Trim(strPhrases)

Hosted by www.Geocities.ws

1