StrPad function FOR ASP

  Function strPad (strSource, destLength, padChar, L_or_R) 
  Dim srcLength 
  Len srcLength = (strSource) 
  If (srcLength> = destLength) Then 
  StrPad = strSource 
Else
  If (L_or_R = 0) Then 
  StrPad = String (destLength - srcLength, padChar) & strSource 
Else
  StrPad = strSource & String (destLength - srcLength) 
  End If 
  End If 
  End Function 

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Tags: ,

Releated Articles


0 Comments to “StrPad function FOR ASP”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.