欢迎光临
我们一直在努力

VB 手机号码编码程序-.NET教程,VB.Net语言

建站超值云服务器,限时71元/月

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

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » VB 手机号码编码程序-.NET教程,VB.Net语言
分享到: 更多 (0)

相关推荐

  • 暂无文章