Rexx - 右字串



此方法從字串的右側返回一定數量的字元。

語法

right(str,count) 

引數

  • str − 源字串。

  • count − 從字串左側返回的字元數。

返回值

此方法從字串的右側返回一定數量的字元。

示例

/* Main program */ 
a = "Hello World" 
say right(a,5)  

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

輸出

World
rexx_strings.htm
廣告

© . All rights reserved.