×
Menu
Index

PAD Subroutine

 
Usage:
s = PAD(s, n [,0|1|2] )
 
Description:
Returns a string that contains at least n characters. When the input string is less than n characters it can be justified left (default) (0), middle (1), or right (2) by providing a third parameter. If the input string length is greater than or equal to n then the input string is simply returned.
 
Example:
sub main()
   // Print [   test   ]
   printl("[", PAD("test", 10, 1), "]")
end sub