『楼 主』:
relplce 参数使用疑惑
VBS准则如下
Replace(expression, find, replacewith[, compare[, count[, start]]])
现在我想要进行文本比较
MyStr3 = Replace("XXpXXPXXp","p","Y",,,vbTextCompare)
msgbox mystr3
可为什么会提示出错,难道非要这样写吗?
MyStr3 = Replace("XXpXXPXXp","p","Y",1,-1,vbTextCompare)
另外,参数find 能使用替代符吗?如***
因为我想将文章中的所有以中国开头并以海外结尾的字符 即"中国*海外" 替换成成"AAA"
[ Last edited by bd123456789 on 2008-2-16 at 01:19 PM ]
|