Skip to Content
author's profile photo Former Member
Former Member

ComboBox select not working

Hi,

I have a custom B1 form with a number of combo boxes on it. I am trying to select a value in one of the combo boxes uses the combobox.Select method. I am using the SearchByValue option.

cboFileFormats.Select("1", SAPbouiCOM.BoSearchKey.psk_ByValue)

However the value is not getting selected. I have another form with exactly the same type of combo box and that works fine. I am using SDK 6.5 and the B1 version i am running this against is V 6.5 Sp1 EF7.

Any help is appreciated.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 02:46 PM

    Hello Gopal, what about using the Item object and then assign it to the combo object? Then all the properties of the combo object will be available (value, description)

    Try to use the following:

    Dim Itm As SAPbouiCOM.Item

    Dim Frm As SAPbouiCOM.Form

    Frm = m_App.Forms.Item(FormUID)

    Itm = Frm.Items.Item("Combo1")

    Combo = Itm.Specific

    String = Combo.Selected.Description

    or String2 = Combo.Selected.Value

    Regards,

    Felipe

    Add a comment
    10|10000 characters needed characters exceeded

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.