基础--精辟.pptVIP

  • 2
  • 0
  • 约7.64千字
  • 约 43页
  • 2017-08-13 发布于上海
  • 举报
基础--精辟

Replace Syntax Replace(string,find,replacewith) 例: Dim txt txt=This is a beautiful day! msgbox(Replace(txt,beautiful,horrible)) Split 函数:在指定分隔符参数出现的所有位置断开string对象,将其拆分为子字符串,然后以数组形式返回子字符串 Split(expression [delimiter[,count[,compare]]]) Expression:主体字符串 Delimiter:拆分元素,默认为“ ” Count:number要放入数组中的项目数,-1为返回所有字符串 Compare:0是二进制比较,1是文本比较。 Dim mystring, myarray, msg mystring=VBScriptXis Xfun! myarray=split(mystring, x,-1,1) msg=myarray(0) myarray(1) myarray(2) msgbox msg Math Functions Function Description Abs Returns the absolute value of a specified number Int Returns the integer part of a spec

文档评论(0)

1亿VIP精品文档

相关文档