中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > wincc中使用vbs常用函數(shù)

        wincc中使用vbs常用函數(shù)

        作者: 時間:2011-06-23 來源:網(wǎng)絡(luò) 收藏
        15.left()

        本文引用地址:http://www.antipu.com.cn/article/150569.htm

          功能:截取一個字符串的前部分;

          格式:left(string,length)

          參數(shù):string字符串,length截取的長度.

          例子: % =left(“this is a test!”,6) %>

          結(jié)果:this i

          16.len()

          功能:返回字符串長度或者變量的字節(jié)長度

          格式:len(string *varname)

          參數(shù):string字符串;varname任意的變量名稱

          例子:

          %

          strtest=“this is a test!”

          response.write left(strtest)

          %>

          結(jié)果:15

          17.ltrim()

          功能:去掉字符串前的空格.

          格式:ltrim(string)

          參數(shù):string 字符串.

          例子: % =ltrim (“ this is a test!”)

          結(jié)果:this is a test!

          18.函數(shù)Mid()

          功能:從字符串中截取字符串.

          格式:mid(string,start [,length])

          參數(shù):string字符串,start截取的起點(diǎn),length要截取的長度.

          例子:

          %

          strtest=“this is a test, Today is Monday!”

          response.write mid(strtest,17,5)

          %>

          結(jié)果:Today

          19.函數(shù)minute()

          功能:返回一數(shù)值, 表示分鐘

          格式:minute(time)

          參數(shù): time是時間變量

          例子lt;% =minute(#12:23:34#) %>

          結(jié)果:23

          20.函數(shù)month()

          功能:返回一數(shù)值, 表示月份

          格式:month(time)

          參數(shù):time是日期變量

          例子% =month(#08/09/99) %>

          結(jié)果:9

          [color=#1E90FF]21.函數(shù)monthname()[/color]

          功能:返回月份的字符串(名稱).

          格式:Monthname(date [,abb])

          參數(shù): date是日期變量,abb=true時 則月份的縮寫,

          例子:

          % =monthname(#4/5/99#) %>

          結(jié)果:April

          22.函數(shù)Now()

          功能:返回系統(tǒng)的當(dāng)前時間和日期.

          格式:now()

          參數(shù):無

          例子:

          % =now() %>

          結(jié)果: 05/10/00 8:45:32 pm

          25.函數(shù)rnd()

          功能:返回一個隨機(jī)數(shù)值

          格式:rnd[(number)]

          參數(shù):number是任意數(shù)值.

          例子:

          %

          randomize()

          response.write rnd()

          %>

          結(jié)果:0/1數(shù)值之一,無randomize(), 則不能產(chǎn)生隨機(jī)數(shù).

          26.函數(shù)round()

          功能:完整數(shù)值

          格式:round(expression_r[,numright])

          參數(shù):expression_r數(shù)字表達(dá)式;numright任意選項.

          例子:

          %

          i=12.33654

          response.write round(i)

          %>

          結(jié)果: 12

          27.函數(shù)rtrim()

          功能:去掉字符串后的空格.

          格式:rtrim(string)

          參數(shù):string 是字符串

          例子:

          %

          response.write rtrim(“this is a test! ”)

          %>

          結(jié)果:this is a test!

          23.函數(shù):replace()

          功能:在字符串中查找,替代指定的字符串.

          格式:replace(strtobesearched,strsearchfor,strreplacewith [,start[,count[,compare]]])

          參數(shù):strtobesearched是字符串; strsearchfor是被查找的子字符串;strreplacewith 是用來替代的子字符串.start,count,compare 是任意選項.

          例子:

          %

          strtest=“this is an apple.”

          response.write replace(strtest,”apple”,”orange”)

          %>

          結(jié)果:this is an orange.

          24.函數(shù)right()

          功能:截取一個字符串的后部分

          格式:right(string,length)

          參數(shù):string字符串,length截取的長度.

          例子:

          %

          strtest=“this is a test!”

          response.write right(strtest,3)

          %>

          結(jié)果:st!



        關(guān)鍵詞: 函數(shù) 常用 vbs 使用 wincc

        評論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉