html5中文学习网

您的位置: 首页 > 网络编程 > ASP.NET » 正文

VB 手机号码编码程序_.NET教程_编程技术

[ ] 已经帮助:人解决问题
编码|程序
Public Function telc(num As String) As String

Dim tl As Integer
Dim ltem, rtem, ttem As String
Dim ti As Integer
ttem = ""
tl = Len(num)
If tl > 14 Then
num = Mid(num, 1, 14)
tl = 14
End If

If tl = 11 Then
tl = tl + 2
num = "86" & num
End If
If tl Mod 2 = 1 Then
tl = tl + 1
num = num + "F"
End If

For ti = 1 To tl Step 2
ttem = ttem & Mid(num, ti + 1, 1) & Mid(num, ti, 1)
Next ti
telc = ttem

End Function

r8RHTML5中文学习网 - HTML5先行者学习网
r8RHTML5中文学习网 - HTML5先行者学习网
(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助