combobox two value

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40588
    Support
    Keymaster

      Hi
      It's not implemented in ComboBox. I think you can organize it in the program by making an array with hidden values or you can use LookupComboBox…

      #40748
      Iruau
      Participant

        See the documentation for AddObject method.
        You will have to reinterpret_cast (this is C++, sorry I don't know the equivalent in Delphi) the TObject* pointer into your datatype.

        If the value you need to store is <= 32 bits then all is fine, otherwise you will have to manage dynamic (de)allocation (in which case it may be easier to maintain a separate array like Sergei explained).

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.