rPad
not ratedPadds the string with the desired spacer
Example: call rPad("fish","a",7) //output: fishaaa
Example: call rPad("fish","a",7) //output: fishaaa
function rPad takes string input, string buffer, integer sz returns string
local integer i = StringLength(input)-1
if i < sz then
loop
exitwhen i > sz
set input = input + buffer
set i = i + 1
endloop
endif
return input
endfunctionNo comments.