Skip to Content
0
Former Member
Oct 18, 2004 at 09:48 AM

Fill matrix with user defined text

211 Views

Hi all,

i've created a form with a matrix on it (with screenpainter). Now i'd like to fill the matrix with user defined data which is not bound to a table.

Is there any way to do this?

Here's my code (The form with the matrix appears, but

the matrix is not filled):

Dim oMatrix As SAPbouiCOM.Matrix

Dim oColumns As SAPbouiCOM.Columns

Dim oColumn As SAPbouiCOM.Column

Dim oCell As SAPbouiCOM.Cell

LoadFromXML (App.Path & "\anrufen.srf")

Set oForm = objSBOApp.Forms.Item("30000")

Set oMatrix = oForm.Items("matrix").Specific

Set oColumns = oMatrix.Columns

Set objColumn = oMatrix.Columns("Col1")

oMatrix.AddRow

Set oCell = objColumn.Cells(1)

oCell.Specific.String = "Hello"