Select the correct statement.

Examine this PeopleCode snippet:
Local Rowset &RSCUST, &RSSTUD;
&RSCUST = GetRowset(RECORD.CUST_TBL);
&RSSTUD = CreateRowset(RECORD.STUDENT_TBL);
&RSCUST.CopyTo(&RSSTUD, RECORD.CUST_TBL, RECORD.STUDENT_TBL);
Select the correct statement.

Examine this PeopleCode snippet:
Local Rowset &RSCUST, &RSSTUD;
&RSCUST = GetRowset(RECORD.CUST_TBL);
&RSSTUD = CreateRowset(RECORD.STUDENT_TBL);
&RSCUST.CopyTo(&RSSTUD, RECORD.CUST_TBL, RECORD.STUDENT_TBL);
Select the correct statement.

A.
The CopyTo() function copies like-named fields from &RSCUST to &RSSTUD.

B.
The CopyTo() function copies like-named fields from &RSSTUD to &RSCUST.

C.
The CopyTo() function is meaningless in this context because &RSCUST is a stand-alone
rowset object with no data.

D.
The CopyTo() function is meaningless in this context because &RSSTUD is a stand-alone
rowset object with no data.

E.
The PeopleCode statement:&RSCUST.CopyTo(&RSSTUD, RECORD.CUST_TBL,
RECORD.STUDENT_TBL);could be replaced with:&RSSTUD = &RSCUST;

F.
The PeopleCode statement:&RSCUST.CopyTo(&RSSTUD, RECORD.CUST_TBL,
RECORD.STUDENT_TBL); should be replaced with:&RSCUST.Fill(&RSSTUD,
RECORD.CUST_TBL, RECORD.STUDENT_TBL);

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *