The Left function returns the initial portion of a string, for a certain length. If the string is shorter than the requested length, the result is augmented on the right with as many pad characters as required.
result = Left( string, length [, pad ] ) |
Examples:
say Left( 'Shazam', 4 ) -- shows: Shaz say Left( 'Shazam', 8, '+' ) -- shows: Shazam++ |