关于用LENW取汉字的特殊例子
1、处理带汉字的字符串中长度为奇数,也就是说在字符串的终点有非法单个字符的情况
if Mod ( len(ls_bgqnr), 2)<>0 then
ls_bgqnr=leftw(ls_bgqnr,lenw(ls_bgqnr)- 1)
ls_bghbmmc=leftw(ls_bghbmmc,lenw(ls_bghbmmc)- 1)
end if
发布时间: 2012-10-15 09:45:25 作者: rapoo
关于用LENW取汉字的特殊例子
1、处理带汉字的字符串中长度为奇数,也就是说在字符串的终点有非法单个字符的情况
if Mod ( len(ls_bgqnr), 2)<>0 then
ls_bgqnr=leftw(ls_bgqnr,lenw(ls_bgqnr)- 1)
ls_bghbmmc=leftw(ls_bghbmmc,lenw(ls_bghbmmc)- 1)
end if