最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

VBScript InStrRev 函數(shù)

定義和用法

InStrRev 函數(shù)可返回一個字符串在另一個字符串中首次出現(xiàn)的位置。搜索從字符串的末端開始,但是返回的位置是從字符串的起點開始計數(shù)的。

InStrRev 函數(shù)可返回下面的值:

  • 如果 string1 為 ""(零長度) - InStr 返回 0
  • 如果 string1 為 Null - InStr 返回 Null
  • 如果 string2 為 "" - InStr 返回 start
  • 如果 string2 為 Null - InStr 返回 Null
  • 如果 string2 沒有找到 - InStr 返回 0
  • 如果在 string1 中找到 string2,InStr 返回找到匹配字符串的位置。
  • 如果 start > Len(string1) - InStr 返回 0

提示:請參閱 InStr 函數(shù)。

語法

InStrRev(string1,string2[,start[,compare]])
參數(shù) 描述
start 可選的。規(guī)定每次搜索的起始位置。默認(rèn)是搜索起始位置是第一個字符。如果已規(guī)定 compare 參數(shù),則必須有此參數(shù)。
string1 必需的。需要被搜索的字符串。
string2 必需的。需搜索的字符串。
compare

必需的。規(guī)定要使用的字符串比較類型。默認(rèn)是 0 。可采用下列值:

  • 0 = vbBinaryCompare - 執(zhí)行二進制比較。
  • 1 = vbTextCompare - 執(zhí)行文本比較。

實例

例子 1

dim txt,pos
txt="This is a beautiful day!"
pos=InStrRev(txt,"his")
document.write(pos)

輸出:

2

例子 2

dim txt,pos
txt="This is a beautiful day!"
'textual comparison
pos=InStrRev(txt,"B",-1,1)
document.write(pos)

輸出:

11

例子 3

dim txt,pos
txt="This is a beautiful day!"
'binary comparison
pos=InStrRev(txt,"T")
document.write(pos)

輸出:

1

例子 4

dim txt,pos
txt="This is a beautiful day!"
'binary comparison
pos=InStrRev(txt,"t")
document.write(pos)

輸出:

15
龙南县| 双辽市| 乌审旗| 兰西县| 通化市| 宾川县| 响水县| 玛沁县| 睢宁县| 宜昌市| 科技| 安岳县| 越西县| 台中市| 中牟县| 吴江市| 邢台县| 望谟县| 衡南县| 商洛市| 铜川市| 寿宁县| 平山县| 凤翔县| 新蔡县| 光山县| 吴旗县| 望谟县| 伊吾县| 伽师县| 沙湾县| 河东区| 清徐县| 华亭县| 黄大仙区| 龙口市| 阿鲁科尔沁旗| 仲巴县| 河西区| 桃江县| 关岭|