Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../index.htm#lansa/selectlist_e.htm]
現在地:

...

7.108.2 SELECTLIST の使用例

例1:#ORDERLINEというリストの、「変更された」項目をすべて処理します。リストおよびリスト処理の詳細については、DEF例1:#ORDERLINEというリストの、「変更された」項目をすべて処理します。リストおよびリスト処理の詳細については、DEF_LISTコマンドのセクションを参照してください。 SELECTLIST NAMED

   SELECTLIST NAMED(#ORDERLINE)

...

 GET_ENTRYS(*ALTERED)

...


     << Commands to process the list >>
     << Commands to process the list >>
      << Commands to process the list >>
ENDSELECT

 
例2:#ORDERLINEというリストの、「選択された」項目をすべて処理します。 

   SELECTLIST NAMED(#ORDERLINE) GET_ENTRYS(*SELECT)
     << Commands to process the list >>
     << Commands to process the list >>
     << Commands to process the list >>
ENDSELECT


例3:作業リスト#ORDERLINEの、数量が0より大きい項目をすべて処理します。 

   SELECTLIST NAMED(#ORDERLINE) WHERE('#QUANTITY *GT 0')
      << Commands to process the list >>
     << Commands to process the list >>
      << Commands to process the list >>
ENDSELECT