if my combobox has 5 entries all numeric eg:
how can I add these values to give me a total (integer) ?
I have this code but it only gives me the value of the last entry in the combobox.....
for i := 0 to combobox2.items.count -1 do
s := combobox2.itemindex + 1;
Combobox2.itemindex := ( s );
total := Strtoint(combobox2.items[combobox2.itemindex]);
label8.caption := Inttostr(total);
inc ( s );
As you can see here, label8.caption gets changed for each item in the combobox instead of adding them all up. any help would be appreciated