Contents | Index | < Browse | Browse >
LEFT(<string>,<length>,[<padchar>])
returns a string
The result is a string of <length> characters made up of the leftmost
characters in <string>. If <length> is greater than the length of
<string>, then the string returned is filled out on the right with
<padchar> -- a quick way to left-justify a string.
The default pad character is a blank.
Example:
say left('never to stop saying',13); >>> never to stop
say left('Widget', 12)'|' >>> Widget |
say left('No', 4, '!') >>> No!!
Also see
NOTE: Formatting tables
Next: LENGTH() | Prev: INSERT() | Contents: String functions