RightPad                                                                                                 Function

 

RIGHTPAD(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 appended to the value of theString to pad on the right.

 

Example

Dim result as String

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