Caliban
07-09-2003, 03:42 PM
Hi y'all, JS gurus out there! :)
Are there an equivalent functions for RPAD (right justification) and LPAD (left justification)
I need something like this:
myVarLEFT = LPAD(myValue, 6, '*')
That is, fill with '*' to the left
myVarLEFT = RPAD(myValue, 6, '*')
That is, fill with '*' to the right
(LPAD and RPAD are Oracle formatting functions, but I know you catch the idea, don't you?)
Any ideas? They'll be gratefully received.
Thanx In Advance
Are there an equivalent functions for RPAD (right justification) and LPAD (left justification)
I need something like this:
myVarLEFT = LPAD(myValue, 6, '*')
That is, fill with '*' to the left
myVarLEFT = RPAD(myValue, 6, '*')
That is, fill with '*' to the right
(LPAD and RPAD are Oracle formatting functions, but I know you catch the idea, don't you?)
Any ideas? They'll be gratefully received.
Thanx In Advance