vb中replace函数的使用方法 replace在VB里是什么意思?

replace在VB里是什么意思?在ASP中,VBScript replace的语法是:replace(“string”、“string to be replace”、“string after re

replace在VB里是什么意思?

在ASP中,VBScript replace的语法是:replace(“string”、“string to be replace”、“string after replacement”)。在VBScript中,replace()详细信息:函数:在字符串中搜索,替换指定的字符串。格式:replace(strtobesearch,strsearchfor,strreplaceword[,start[,count[,compare

)。参数:strtobesearch is string s Trsearchfor是要搜索的子字符串。Strreplacewith是要替换的子字符串。开始,计数,比较是任何选项。示例:<%strtest=“这是一个苹果。”response.writereplace文件(strtest,“苹果”,“橙色”)%>结果:这是一个橙色