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
Releated Articles
On PHP @ 16/09/2006 | By admin








0 Comments to “StrPad function FOR ASP”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.