明辉手游网中心:是一个免费提供流行视频软件教程、在线学习分享的学习平台!

StripNonNumeric函数源程序

[摘要]<%Function StripNonNumeric(strInput) Dim iPos, sNew, iTemp strInput = Trim(strInput) If...
<%
Function StripNonNumeric(strInput)
    Dim iPos, sNew, iTemp
    strInput = Trim(strInput)
    If strInput <> "" Then
        iPos = 1
        iTemp = Len(strInput)
        While iTemp >= iPos
            If IsNumeric(Mid(strInput,iPos,1)) = True Then
                sNew = sNew & Mid(strInput,iPos,1)
            End If
            iPos = iPos + 1
        Wend
    Else
        sNew = ""
    End If
    StripNonNumeric = sNew
End Function
%>