Padding with anything is easy, actually.
 Code:
$PadStr = "0000000000" ; pad char string - more than enough to pad
$PadLen = 4

$Value = 3
; left-pad the value with PadStr for PadLen characters
$PValue = Right($PadStr + CStr($Value), $PadLen)

Concept works with any pad character. You can right-pad as well by taking the Left() of the resulting string.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D