PeopleCode取組件緩衝區(Component Buffer)數據小結

 

Local Rowset    &RS_Level0, &RS_Level1;
Local Row    &Row_Level0, &Row_Level1;
Local Record    &Rec_TaskRsrc;
Local Field    &Fld_PctAvail;

REM Get rowset of level0 (獲取0層的行集合);
&RS_Level0 = GetLevel0();

REM Get row of level0 (獲取0層的行);
&Row_Level0 = &RS_level0.GetRow(1);

REM Get rowset of level1 (獲取1層的行集合);
&RS_Level1 = &Row_Level0.GetRowSet(Scroll.PSV_TASK_RSRC);

REM Get row of level1 (獲取1層的行);
&Row_Level1 = &RS_Level1.GetRow(&I);

REM Get record of row on level1 (獲取1層的行上的Record);
&REC_Taskrsrc = &Row_Level1.GetRecord(Record.PSV_TASK_RSRC);

REM Get field of record on row (獲取1層的行上的Record上的Field);
&Fld_PctAvail = &REC_Taskrsrc.GetField(Field.PCT_AVAILABLE);

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章