Is there any function in VBScript to replace the Format$(String,"00") in VB? thanks!
What does that function do, and I'll tell you.<BR><BR>Craig.
It gets the input from string like let's say 1...and produces the output 01 according to the format specified<BR>eg <BR> i = format$(5, "00")<BR> i = 05<BR>
There isn't a built in function.. but, you could do:<BR><BR>Function FormatString(valToPad, paddingVal)<BR> FormatString = Right(paddingVal & valToPad, Len(paddingVal))<BR>End Function<BR><BR>-Doug