|
Previous Top Next |
Prototype: | (String pStr, String pPad, Short pLen, Byte pStart=0),String |
pStr | String to pad |
pPad | Padding character or string to use |
pLen | Length of padded string |
pStart | Optional where to start the padding |
Returns | Returns the padded string |
This method can be used to pad a string with character or repeated characters. This can be useful when lining up strings with for example results of calculations when writing information to text files.
Example:
ITS ITStringClass
S String(1024)
Code
S = 'Test one'
S = ITS.PadString(S, '.',50) & '1'
! S should now be 'Test one.........................................1'