Not have to use (str) to convert int to str!

Discuss OrbForms Designer and PocketC Architect

Postby RWB on Fri Apr 14, 2006 11:03 pm

// 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
RWB
RWB
 
Posts: 28
Joined: Fri Feb 10, 2006 12:43 pm
Location: Sweden

Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 2 guests

cron