Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE
Welcome, Guest
Username Password: Remember me
ASP.NET PROGRAMS, ASP.NET DESIGN, ASP.NET CODE, ASP.NET TOOLS

ASP.NET combines Active Server Pages with the .NET Framework. This technology allows you to create dynamic web applications. ASP.NET pages work in all browsers. Best of all, ASP.NET lets you build web pages using less code than you need with classic ASP. If you’re using ASP.NET to build some applications for your website, you owe it to yourself to check out the articles in this section.
  • Page:
  • 1

TOPIC: LeftPad

LeftPad 08 Dec 2009 07:26 #44

 
 
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
 
  • mnjon
  • OFFLINE
  • CE Staff
  • Posts: 78
  • Karma: 40
CodersEngine
  • Page:
  • 1
Time to create page: 0.33 seconds