·建站首页 ·钻石 ·繁體
您的位置: 中国建站之家 -> 网站开发设计 -> ASP教程 -> StripNonNumeric函数源程序

StripNonNumeric函数源程序

作者:未知  来源:转载  发布时间:2005-7-20 11:38:33  发布人:acx

<%
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
%>


将本文收藏到QQ书签与更多好友分享

上一篇:bbs树形结构的实现方法(一)

下一篇:bbs树型结构的实现方法(二)