日期

来源:互联网 发布:linux 新建脚本文件 编辑:程序博客网 时间:2024/04/28 08:25

 Private Function RegCheck(ByVal Source As String, ByVal StrLength As Integer, ByVal MaskChar As String) As String

        Dim nLength As Integer = 0
        Dim strTmp As String = String.Empty

        If Source.Length <= StrLength Then
            nLength = StrLength - Source.Length
            For i As Integer = 0 To nLength - 1
                strTmp = strTmp & MaskChar
            Next
        End If

        strTmp = strTmp & Source
        Return strTmp

    End Function 

原创粉丝点击