title: How i can use different text of item text in ComboBox in Delphi
body: <p>I'm having a TComboBox component(comboxCountry) on my form. 
  And here's the items inside the TComboBox.</p>
  
  <p>Item 1 : 'Singapore SG'</p>
  
  <p>Item 2 : 'India IND'</p>
  
  <p>Item 3 : 'Australia AUS' and etc etc etc .. </p>
  
  <p>When the combobox value is changed, i want the combboxCounty.Text to 
  only display the country code instead of the whole String in the items list.
  For example, i want to only display 'SG' instead of 'Singapore SG' .. Here's how i do
  for cboxBankCategory OnChange function:</p>
  
  <pre><code>if comboxCountry.ItemIndex = 0 then
  comboxCountry.Text := 'SG'
  
  else if comboxCountry.ItemIndex = 1 then
  comboxCountry.Text := 'IND'
  
  else
  comboxCountry.Text := 'AUS'
  </code></pre>
  
  <p>It seems correct, but it doesn't works for me as the comboxCountry.Text still display
  the whole country definition in the item list instead of only the country code, anything
  wrong with my code anyone ? </p>
  
  <p>Thanks.</p>