len(),lift(),right()不能正常识别中文的解决方法

美国唐人街时代

美国唐人街时代

2016-01-29 19:36

len(),lift(),right()不能正常识别中文的解决方法,len(),lift(),right()不能正常识别中文的解决方法
       以下用法和len(),lift(),right()一样。
  
  Function Strlength(Str)
  Temp_Str=Len(Str)
  For I=1 To Temp_Str
  Test_Str=(Mid(Str,I,1))
  If Asc(Test_Str)>0 Then
  Strlength=Strlength+1
  Else
  Strlength=Strlength+2
  End If
  Next
  End Function
  Function Strleft(Str,L)
  Temp_Str=Len(Str)
  For I=1 To Temp_Str
  Test_Str=(Mid(Str,I,1))
  Strleft=Strleft&Test_Str
  If Asc(Test_Str)>0 Then
  lens=lens+1
  Else
  lens=lens+2
  End If
  If lens>=L Then Exit For
  Next
  End Function
  Function Strright(Str,L)
  Temp_Str=Len(Str)
  For i = Temp_Str to 1 step -1
  Test_Str=(Mid(Str,I,1))
  Strright=Test_Str&Strright
  If Asc(Test_Str)>0 Then
  lens=lens+1
  Else
  lens=lens+2
  End If
  If lens>=L Then Exit For
  Next
  End Function
  
  
  
  

 
展开更多 50%)
分享

猜你喜欢

len(),lift(),right()不能正常识别中文的解决方法

ASP
len(),lift(),right()不能正常识别中文的解决方法

winXP不能够正常关机的解决方法

电脑入门
winXP不能够正常关机的解决方法

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

XP不能够正常关机的解决方法

windows 操作系统
XP不能够正常关机的解决方法

关于MathType6.9不能输入中文的解决方法

电脑网络
关于MathType6.9不能输入中文的解决方法

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

ajax中文乱码解决方法

Web开发
ajax中文乱码解决方法

usb鼠标无法识别解决方法

电脑入门
usb鼠标无法识别解决方法

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

PS鼠绘非常有质感的球星漫画

PS鼠绘非常有质感的球星漫画

Photoshop教程:图层样式制作雕花屏风

Photoshop教程:图层样式制作雕花屏风
下拉加载更多内容 ↓