Skip to Content
0
Former Member
May 04, 2007 at 04:34 AM

Matrix Value Assigning Problem

14 Views

Hi all,

I have a matrix inside a userform. In that matrix in the first column i have a choose from list to select the items. After selecting the items am able to display the selected item in any textbox but iam not able to display the same inside the matrix.

or in simple terms i can put as

How to assign a particular value to (for eg.)first row and first column of a matrix?

Dim t_textbox As SAPbouiCOM.EditText

Dim colitemno As SAPbouiCOM.Column

Dim oitematrix As SAPbouiCOM.Item

Dim omatrixdata As SAPbouiCOM.Matrix

oitematrix = oform.Items.Item("mat")

omatrixdata = oitematrix.Specific()

colitemno = omatrixdata.Columns.Item("1")

'above line represents first column.

Dim oedit As SAPbouiCOM.EditText

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

'above represents corresponding row.

oEdit.value= 4

' am hard coding for testing purpose and this above line gives me error (Form Bad Value)

Pls I need ur help . Its very urgent.

Thanks in advance.