首页 相关文章 截取实际长度字符串并用空格替换

截取实际长度字符串并用空格替换

function cutstr(thestr,strlen)
dim l,t,c
l=len(thestr)
t=0
for dxy=1 to l
c=Abs(asc(Mid(thestr,dxy,1)))
if c255 then
t=t+2
else
t=t+1
end if
if t=strlen then
thev=left(thestr,dxy)
exit for
else
bu=strlen-t
for bui=1 to bu
strbu=" "
strbuall=strbuall&strbu
next
thev=thestr&strbuall
strbu=""
strbuall=""
end if
next
cutstr=thev
end function

%
'============================
'函数名w_cut(type,num)
'作用...[ 查看全文 ]

2016-02-19 标签:

截取实际长度字符串并用空格替换的相关文章

手机页面
收藏网站 回到头部