主题:有没有去掉字符串中间空格的函数?
lideming
[专家分:10] 发布于 2009-07-25 22:52:00
例如:将“麻 黄”变成“麻黄”。
回复列表 (共4个回复)
沙发
moz [专家分:37620] 发布于 2009-07-25 23:46:00
t1="麻 黄"
MESSAGEBOX(CHRTRAN(t1," ",""))
MESSAGEBOX(STRTRAN(t1," ",""))
板凳
sywzs [专家分:5650] 发布于 2009-07-26 04:45:00
cSTR="麻 黄"
do while " "$cSTR
cSTR=stuff(cSTR,at(" ",cSTR),1,"")
enddo
3 楼
user886633 [专家分:2400] 发布于 2009-08-01 13:43:00
?CHRTRANC("麻 黄"," ","")
4 楼
wadewangfei [专家分:0] 发布于 2009-08-02 08:50:00
REPLACE all 字段名 with ALLTRIM(STRTRAN(strTRAN(字段名,' ',''),' ',''))
去全角加半角
我来回复