DS 資料都LOOP一次 :

InventTrans                 localInventTrans = InventTrans_DS.getFirst() as InventTrans;

ItemId                      itemId;

while(localInventTrans)
{
  //access fields by using localInventTrans.fieldname
  itemId = localInventTrans.ItemId;


 

  //get the next record from the datasource
        localInventTrans = InventTrans_DS.getNext() as InventTrans;
}

 

指定了GRID 的資料LOOP一次:

InventTrans                 localInventTrans;
ItemId                         itemId;

//get the first selected record of the datasource and loop through all of the selected records

for(localInventTrans = InventTrans_DS.getFirst(true) ? InventTrans_DS.getFirst(true) : InventTrans_DS.cursor(); localInventTrans; localInventTrans = InventTrans_DS.getNext())
{
                   itemId = localInventTrans.ItemId;
                   info(itemId);
}
創作者介紹
創作者 lionlionchopper 的頭像
lionlionchopper

呆子獅的夢想世界

lionlionchopper 發表在 痞客邦 留言(0) 人氣()