[String->PadLeading] modifies the string object in-place by padding the front of the string to the specified length. An optional second parameter specifies the padding character. The padding character defaults to a space.
'String Object'->padleading(Integer)
'String Object'->padleading(Integer,'Padding Character')
Use the [String->PadLeading] method. The following example pads the string out to 32 characters by adding asterisks to the start of the string.
Code
local('s') = 'The quick white rhino'
#s->padleading(32,'*')
#s
Result
***********The quick white 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