How to call ComboBox1Select(nil) one after another?
Example 1:
ComboBox1.ItemIndex := 0; ComboBox1Select(nil); ComboBox1.ItemIndex := 1; ComboBox1Select(nil); // Так не получается вызывает последний ItemIndex Example 2:
for i := 0 to ComboBox1.Items.Count -1 do begin ComboBox1.ItemIndex := i; ComboBox1Select(nil); end; // Так тоже не получается Actually the question is how to call all ComboBox1.ItemIndex in a row one by one through the call ComboBox1Select(nil) can the place nil some parameter?
Update
I do not want to change everything, everything works for me through the onselect event. Suppose combobox1.itemsindex := 0 and the program yielded the result and so when selecting itemsindex. It turns out the result corresponding to this itemsindex . I would like not to change all the code, but on the other button, go to itemsindex and select in turn so as to bypass from first to last. For example, in a loop or something else. So I saw a solution in which ComboBox1Select(nil) can run ComboBox1.ItemIndex := 0; , but in fact it runs only once, but I need to go through everything. Above wrote how I tried and what did not work out.
ComboBox1Selectcode? - KromsterComboBox1Select(ComboBox1);also does not work? - AlekcvpComboBox1Selectdo? - kot-da-vinciComboBox1Select(nil);You writeShowMessage('ОК')in this event and see the result. Most likely, the data just as you say is formed very quickly and only the last result is visible. - androschuk