API version 1
- ‐
[]¶
特定行を取得するオペレータです。
複数行を含むSpreadRowオブジェクトから特定行を指し示すSpreadRowオブジェクトを取得することができます。
呼出形式一覧
呼出形式 |
説明 |
---|---|
operators_method.[].signature.? (?) |
行に配列要素でアクセスします。 |
引数一覧
引数 |
説明 |
---|---|
operators_method.[].param_list.param_type.idx |
添え字を0以上の整数値で指定します。 |
例外
なし
使用例
CRSダウンロード
Form SpreadRow_length {
x = 0;
y = 0;
width = 800;
height = 600;
Spread spread1 {
x = 8;
y = 8;
width = 640;
height = 440;
maxColumns = 20;
maxRows = 20;
}
Button button1 {
x = 664;
y = 32;
width = 112;
height = 32;
title = "実行";
function onTouch(e) {
var s = ^.spread1.rows(2,6);
#sに含まれる行数を返します
print("含まれる行数は", s.length , "です");
for ( var i = 0; i< s.length; i++ ) {
#オブジェクトsのi番目の単体行のSpreadRowオブジェクトを取得し、タイトルを変更します
s[i].title = "Index:" + str(i) ;
}
}
}
}