LeftPad                                                                                                    Function

 

LEFTPAD(theString as String, num as Integer)

 

Description

Returns a string that is num characters long. If the input string, theString, is less than num characters long, then spaces are inserted before the value of TheString to pad on the left.

 

Example

Dim result as String

Result=LeftPad("John Doe", 12) 'would set result to "    John Doe"