Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.