Lasso Soft Inc. > Home

[ string->padTrailing ]


[String->PadTrailing] modifies the string object in-place by padding the end of the string to the specified length. An optional second parameter specifies the padding character. The padding character defaults to a space.

  • Syntax
'String Object'->padtrailing(Integer)
'String Object'->padtrailing(Integer,'Padding Character')
  • Beginner

To pad the end of a string to a desired length:

Use the [String->PadTrailing] method. The following example pads the string out to 32 characters by adding asterisks to the end of the string.


local('s') = 'The quick white rhino'


The quick white rhino***********

Recent Comments

No Comments found

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. > Home



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