Input collection: myTestScores32a
FullName | Age | TestScore |
David Jones | 32 | 78 |
Anne Lisbon | 45 | 92 |
Penlope Parra | 26 | 56 |
Input collection: myTestScores32b
FullName | Age | TestScore |
Harold Reimer | 50 | 65 |
Jerry Farrel | 18 | 73 |
Stacy Fenton | 35 | 84 |
Output collection: mySolution32
FullName | Age | TestScore |
David Jones | 32 | 78 |
Anne Lisbon | 45 | 92 |
Penlope Parra | 26 | 56 |
Harold Reimer | 50 | 65 |
Jerry Farrel | 18 | 73 |
Stacy Fenton | 35 | 84 |
Solution code:
//Create a collection
ClearCollect(myTestScores32a,
{FullName:"David Jones", Age: 32, TestScore: 78},
{FullName:"Anne Lisbon", Age: 45, TestScore: 92},
{FullName:"Penelope Parra", Age: 26, TestScore: 56}
);
//Create multiple rows
ClearCollect(
myTestScores32b,
{FullName:"Harold Reimer", Age: 50, TestScore: 65},
{FullName:"Jerry Farrel", Age: 18, TestScore: 73},
{FullName:"Stacy Fenton", Age: 35, TestScore: 84}
);
//Insert multiple new rows into collection code
ClearCollect(mySolution32,myTestScores32a);
Collect(mySolution32,myTestScores32b);