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

Combobox

Why experts don't answer my problem 😔

Here's another one.

I have ComboBox, and I want that when it change the value of combobox will equal with textbox. Is that possible?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2011 at 08:57 PM

    Hi

    You don't describe your problem properly.

    What you want to do on the change of combobox value?

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 10:43 AM

    hi,

    you write the event for Combo box event for that field

    Example Code

    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
                        Try
                            Select Case pVal.ItemUID
                                Case "Cmbprice"
                                    Dim oCombo As SAPbouiCOM.ComboBox
                                    oCombo = frmProjectBOM.Items.Item("Cmbprice").Specific
                                    Dim modepay As String = oCombo.Selected.Value
                                     MsgBox(modepay)
                                    oForm.Items.Item("txtDocNo").Specific.Value=modepay                              
                            End Select

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member
      Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
                                      Try
      
                                          Select Case pVal.ItemUID
                                              Case "cFrom"
                                                  Dim oCombo As SAPbouiCOM.ComboBox ' 
                                                  oCombo = oForm.Items.Item("cFrom").Specific
                                                  Dim oVV As String = oCombo.Selected.Value
                                                  MessageBox.Show(oVV)
                                          End Select
      
                                      Catch ex As Exception
                                          MessageBox.Show(ex.Message)
                                      End Try

      I use this code but still object reference.

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.