第1个回答 2008-09-10
删除:
1、InStr、replace
如果字符串内包含被删除值,则进行替换
if instr(str,"语文")>0 then
str=replace(str,"语文","")
end if
整理字符串:
str=replace(str,"||",""),"|")
if left(str,1)="|" then str=mid(str,2,len(str)-1)
if right(str,1)="|" then str=left(str,len(str)-1)
2、或split
----------------
添加主要通过合并字符串处理:
str=str&"|地理"本回答被提问者采纳