盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

分行模块,自动识别英文与型号数

时间:2025/1/14作者:未知来源:盾怪网教程人气:

[摘要]Function cuttextlen(intext, lens) If Len(intext) <= lens Then cuttextlen = intext E...
Function cuttextlen(intext, lens)
    If Len(intext) <= lens Then
        cuttextlen = intext
    Else
        tmptext = intext
        GetTexts = ""
        Do While Not Len(tmptext) <= lens
        
            GetTexts = GetTexts + Left(tmptext, lens)
            tmptext = Right(tmptext, Len(tmptext) - lens)
            Do While (Asc(Left(tmptext, 1)) >= 65 And Asc(Left(tmptext, 1)) <= 90) Or (Asc(Left(tmptext, 1)) >= 97 And Asc(Left(tmptext, 1)) <= 122) Or (Asc(Left(tmptext, 1)) >= 45 And Asc(Left(tmptext, 1)) <= 57)
                GetTexts = GetTexts + Left(tmptext, 1)
                tmptext = Right(tmptext, Len(tmptext) - 1)
                'If Len(tmptext) <= lens Then Exit Do
            Loop
        GetTexts = GetTexts & "<br>"
        Loop
        cuttextlen = GetTexts & tmptext
    End If
End Function
具体例子位置还是WWW.HIFI-CHINA.COM


关键词:分行模块,自动识别英文与型号数




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版