Skip to Content
0
Former Member
Jul 07, 2008 at 10:08 AM

Combo Box getting null/nothing

248 Views

Hi all,

I have a combo box in a matrix.

When I try to get the description of the selected combo box I got the following error message:

System.NullReferenceException "object reference not set to an instance of an object"

here is my piece of code:

Dim oEdit As SAPbouiCOM.EditText

Dim oCombo As SAPbouiCOM.ComboBox

oCombo = colItemCode.Cells.Item(pVal.Row).Specific

oEdit = colItemName.Cells.Item(pVal.Row).Specific

oEdit.Value = oCombo.Selected.Description

I want to assing the description of the selected combo box to the edit text.

Debugging i see oCombo.Selected is nothing. Why???

I'm using SAP B1 2007 A (8.00.176) SP:00 PL:35

Can anyone help me to fix it?

Thank's in advance

Andrea