Page 1 of 1

PostPosted: Fri Apr 14, 2006 11:03 pm
by RWB
// CorrectMain.oc

//Here's the code for PCA
int a2;
int r7,r8,r9;
string r7txt,r8txt,r9txt;
string finish[3];

r7=5;
r8=10;
r9=15;

r7txt="1>"+"7 correct="+r7;//Works fine without being converted from int to string!The compiler let it true!
r8txt="2>"+"8 correct="+r8;//Same as above!
r9txt="3>"+"9 correct="+r9;//Same as above!

finish[0]=r7txt;//Convert to array
finish[1]=r8txt;//Convert to array
finish[2]=r9txt;//Convert to array

//Show in listcorrect
for(a2=0;a2<=3;a2++){

listcorrect.setitems(a2,finish);
listcorrect.redraw();
}

}//end main

RWB