Rexx - 查詢



此方法用於搜尋字串中第一個出現的字串。

語法

find(string, phrase)

引數

  • string - 需要搜尋的字串值。

  • phrase - 這是需要在字串中搜索的值。

返回值

該方法返回字串中 phrase 的第一個單詞的單詞編號。

示例

/* Main program */ 
options arexx_bifs 
say find(' Hello World ','World') 

執行以上程式後,我們將得到以下結果。

輸出

2
rexx_regina.htm
廣告

© . All rights reserved.