Thread Rating:
  • 307 Vote(s) - 2.72 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recordの選択状態の取得
04-23-2014, 03:07 PM,
#2
RE: Recordの選択状態の取得
「選択された順番」が関係しているようなので、
独自のルールでソートしたければ、いったん別の配列に入れてsort で並び替えてやるのがよさそうです。

Code:
def ary = {{Array-of int}}
def recs = test_grid.selection.records
{for i:int in test_grid.selection.records do
{ary.append i}
}
{ary.sort}
{for i:int in ary do
{index_box.add i}
}
||INDEXを表示
{popup-message index_box}


Messages In This Thread
Recordの選択状態の取得 - by rom - 04-23-2014, 11:38 AM
RE: Recordの選択状態の取得 - by umemura - 04-23-2014, 03:07 PM
RE: Recordの選択状態の取得 - by rom - 04-23-2014, 03:56 PM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1075')