このアイテムが現在選択されている場合TRUE
BookItemクラス (PRIM_BOOK.BookItem) のメンバ
データタイプ - ブール値
詳細
項目が選択されている場合、 Selected はTrueを返します。
すべてのリストコントロールでは、 1 つ以上の項目をキーボード、マウス、またはプログラムで選択できます。
選択した項目のセットに対してアクションを実行できます。
例
この例では、リストが処理され、選択されたアイテムに対して合計給与が準備されています。
アイテムが処理されるときにフィールド値が確実に返されるように、 SELECTLIST が必要です。
SelectList Named(#List)
Continue (*Not #List.Currentitem.Selected)
#Total += #Salary
Endselect
In this example, selection state is being reversed.
FOR can be used here as no access to the field values is required.
For Each(#Item) In(#List.Items)
#Item.Selected := *not #Item.Selected
Endfor