|网络加速软件|网络加速网关|游戏加速|网站加速|上网加速|电信加速|网通加速|铁通加速|移动加速|联通加速|教育网加速|

字体: | 推荐给好友 上一篇 | 下一篇

StrPad 函数 FOR ASP

发布: 2007-1-08 14:47 | 作者: 千渡 | 来源: | 查看: 50次

Function strPad(strSource, destLength, padChar, L_or_R)
        Dim srcLength
        srcLength = Len(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


 

评分:0

我来说两句

seccode