cancel
Showing results for 
Search instead for 
Did you mean: 

COMBOBOX Error: "Object reference not set to an instance of an object."

Former Member
0 Kudos

Buenos dias, a todos tengo un problema con SAP talvez me puedan ayudar:

Hi, everybody i have a problem with SAP, maybe y can help me:

yo he creado un Combobox(SAPbouiCOM.ComboBox), que utiliza un oDBDataSource direccionado a un tabla de usuario del tipo con el nombre "@SUCURSALES", y pues el combo me muestra la información correctamente, pero cuando capturo el evento "et_COMBO_SELECT" para ese combo, pues utilizo "combo.Selected.value", y me devuelve el siguiente error: "Object reference not set to an instance of an object." y mi formulario si esta instanciado al igual que el combo, me podrian por favor dar una pista de lo que podria estar pasando??

I created a Combobox(SAPbouiCOM.ComboBox) this Combobox use a oDBDataSource from a custom table named ("@SUCURSALES"), and the combobox show the information good, but when i Catch the combo event with the method "et_COMBO_SELECT" , i use "combo.Selected.value" command, i obtain the next error message "Object reference not set to an instance of an object.", what is wrong?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ojo para todos los desarrolladores, este Error me daba por que no habia hecho un Trim() del valor del combobox, si se topan coin este problema ya saben ..

SAludos..

Cualquier duda me preguntan