getNextItemgetNextItem(Ver2.14対応版)
目次Index−
スクリプトScript−
グローバルのメソッドGlobal method−
getNextItem
getNextItem( num1, num2 )
指定する状態フラグに該当する、次の項目のインデックスを返します。
Returns the index of the next item that corresponds to the status flag specified.
- パラメータ1(数値型)
-
検索を開始する項目のインデックス。
-1の場合、最初のヒット。
0以上の場合、指定したインデックスの次のヒット。
例:最初の選択項目 iSel = getNextItem(-1,2);
最初のフォーカス項目 iFocus = getNextItem(-1,1);
The index of the items to start the search.
If -1, the first hit is returned.
If 0 or more, the next hit at the specified index is returned.
Example:
First selection item : iSel = getNextItem(-1, 2);
First focus item : iFocus = getNextItem(-1, 1);
- パラメータ2(数値型)
-
状態フラグを指定します。
0x01:フォーカス
0x02:選択
Status flag.
0x01: Focused
0x02: Selected
- 返り値(数値型)
-
ヒットした項目のインデックスです。
ヒットしなかった場合は-1になります。
Index of hit item.