columncombobox indexes


sorry, but how does indexof work?

I fill the box from the DB. Then I get the last setting from the ini (sPuffer) and want to assign it like this:

TColumnComboBox(Components[iCounter]).ItemIndex:= TColumnComboBox(Components[iCounter]).ColumnItems[1,0].IndexOf(sPuffer);

how are you doing right?


ColumnComboBox.ColumnItems[i,j]: string returns the text at a specific row i in a specific column j.
The IndexOf() method is IndexOf() on this specific string and the meaning of this IndexOf() on a string is explained here: