in delphi, can add combobox items with different case(in my example uppercase). `
ComboBox1.Items.Add('SYDNEY');
ComboBox1.Items.Add('MOSCOW');
ComboBox1.Items.Add('BERLIN');
ComboBox1.Items.Add('BERN');
ComboBox1.Items.Add('PARIS');
`
but when try search, combobox text differs from items case type
and will be inserted into database as 'bERLIN' instead of 'BERLIN'.
UniQuery1.SQL.Add('INSERT INTO login (id,user) values (10,'''+ComboBox1.text+''')');
Is there way to automatically change text to actual items case
UpperCase(ComboBox1.Text)
– Delphi Coder