[String->Remove] removes a portion of the string object.
An optional first parameter specifies the first character to be removed, and defaults to the first character in the string object.
An optional second parameter specifies how many characters should be removed. The second parameter defaults to removing all the characters from the removed character to the end of the string.
This method returns no value, but the string object is modified in-place.
'String Object'->remove
'String Object'->remove(Integer)
'String Object'->remove(Integer, Integer)
Use the [String->Remove] method. The following examples create a string object, remove specified portions from the string object, then outputs the result.
Code
local('s') = 'The quick rhino'
#s->remove
#s
local('s') = 'The quick rhino'
#s->remove(7)
#s
local('s') = 'The quick rhino'
#s->remove(7,2)
#s
Result
// returns an empty string The qu The quk rhino
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments