Lasso Soft Inc. > Home

[trim(9)]

Linktrim(9)
AuthorJolle Carlestam
CategoryString
Version9.x
LicensePublic Domain
Posted22 Nov 2011
Updated22 Nov 2011
More by this author...

Description

Adding an optional param to string -> trim so that it works on any character.

Sample Usage

var(mypath = response_filepath)
$mypath -> trim('/')
$mypath
var(mystring = 'xxxräksmörgåsxx')
$mystring -> trim('x')
$mystring

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

define string -> trim(trim::string) => {
	.removeleading(#trim) & removetrailing(#trim)
}

Comments

No comments

Please log in to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft