Skip to Content
0
Former Member
Sep 22, 2005 at 03:41 AM

filling data in user matrix

146 Views

Hi, I have created a user matrix and would like to know how I can fill string type data within the code. i have tried something like this but returns an error about object refernce not set to an instance of an object.. My code is below:

oItem = oForm.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)


...add columns

oUserMatrix = oform.Items.Item("Matrix1").Specific

oUserMatrix.Columns.Item("itemcode").Cells.Item(1).Specific.string() = "ABC"

When I try to assign a value to a cell, the error message is thrown. Any advice from you would be appreciated.