Using C++ Builder 6
I have a form with a Tmemo object in which I can enter numbers (from 0 to 10 but thats irrelevant)
On_Click
Now I would like to loop through those numbers in the memo box and depending on whether they are bigger or smaller then 5 perform an action.
Yet for some reason it dont seem to work.
then I place the the values of v and o in a textbox. Ie it shows how many numbers are more and less then 5.Code:for(int i = 0; i >= this->Memo1->Lines->Count; i++) { s = this->Memo1->Lines->Strings[i].ToInt(); if (s >= 5) v++; else o++; sum = sum + this->Memo1->Lines->Strings[i].ToInt(); }



LinkBack URL
About LinkBacks


