boolean = Padding(theValue,
theLength)
Example Usage:
ASP Source Code:<% =Padding(theValue,6) %>
Function Padding(Str, Length) ' Pad the Length of the Dx Codes to 6 ' If the length of the Str is less than the variable 'length' If Len(Str) < Length Then padding = "" howmanyspaces = Length - len(Str) for i = 1 to (howmanyspaces) padding = padding & " " next mystring = Str & padding ' If the length of the Str is greater than the variable 'length' Elseif len(Str) > Length Then mystring = Left(Str,Length) Else set mystring = Str End If Padding = mystring End Function