[trim(9)]

Description

Link: [trim(9)]
Author: Jolle Carlestam
Category: String
Version: 9.x
License: Public Domain
Posted: Nov. 22, 2011
Updated: Jan. 01, 0001
More by this author...

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

Parameters

none


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.
1
2
3
4
define string -> trim(trim::string) => {
	.removeleading(#trim) & removetrailing(#trim)
}

 

Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net