标题:[推荐]简单的检查输入email是否合法程序
取消只看楼主
suyongtao
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:33
帖 子:8674
专家分:127
注 册:2004-11-6
结帖率:77.27%
 问题点数:0 回复次数:2 
[推荐]简单的检查输入email是否合法程序
     function chkEmail(email)
            on error resume next
            dim i,l,pos1,pos2
            chkEmail=true
            if isnull(email) then chkEmail=false:exit function
            pos1= instr(email,"@")
            pos2=instrRev(email,".")
            if not(pos1>0) or not (pos2>0) or pos1>pos2 then            
               chkEmail=false
            end if
            if err.number<>0 then err.clear
        end function
搜索更多相关主题的帖子: email 合法 检查 输入 
2005-01-14 11:12
suyongtao
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:33
帖 子:8674
专家分:127
注 册:2004-11-6
得分:0 
简单的检查输入email是否合法程序      Function isEmail(val)       isEmail=False       if len(val)>0 then        if instr(val,"@")>0 and instr(val,".")>0 and len(val)>5 then        else         exit function        end if       else        exit function       end if       isEmail=true      end function

面朝大海,春暖花开!
2005-01-14 11:13
suyongtao
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:33
帖 子:8674
专家分:127
注 册:2004-11-6
得分:0 
也行,呵呵,,

面朝大海,春暖花开!
2005-01-14 18:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-11279-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.459904 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved