What's Here?
- Members: 300,341
- Replies: 825,692
- Topics: 137,400
- Snippets: 4,417
- Tutorials: 1,147
- Total Online: 1,608
- Members: 113
- Guests: 1,495
|
Left pads the input string to the desired length with the given padding character
|
Submitted By: Chubber
|
|
Rating:
  
|
|
Views: 1,629 |
Language: ASP
|
|
Last Modified: June 12, 2007 |
Snippet
Function LeftPad(strIn, strPad, iLen)
'Left pads the input string to the desired length with the given padding character
'Does not truncate
If Len(strIn) < iLen Then
LeftPad = String((iLen - Len(strIn)), strPad) & strIn
Else
LeftPad = strIn
End If
End Function
Copy & Paste
|
|
|
|