Skip to Content
avatar image
Former Member

Display Combo description

I have created a Combobox inside a form,

I had values to it using the below code

oComboBox.ValidValues.Add(oRecordSet.Fields.Item(0).Value, oRecordSet.Fields.Item(1).Value)

But when i select from Combo, only the value gets displayed and not the description

Can anyone help me?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 26, 2004 at 12:57 PM

    The DisplayDesc property of the item can be set to True to display the description in the Combo Box. Note that this property is on the Item object, not on the ComboBox specific properties

    If loading from XML you can set the "disp_desc" attribute of the item to "1" to get the equivalent effect.

    John.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Gerold, the Item.DisplayDesc = false doesn't work for 6.5 on patch 20 as I've done this in several places without any success. I think I might need to upgrade to service pack one.

      Yes I have managed to register my add-on but I am using C# for my add-ons - I posted my C# for registering add-ons in this forum several days ago. I use Delphi when using the DI API, not the UI API as too many of the UI SDK properties are read-only in Delphi, (well it was several months ago when I was testing the UI in Delphi)