Skip to Content
0
Former Member
Jul 17, 2008 at 01:01 PM

matrix problem?

21 Views

hi all

i want sumation of column that show on text field .

i create a matrix by screenpinter whose coloum name is

depth.

my problem is that when i enter the value second row of ths coloum value is not staying here is my code

Private Sub diplay_OBRform()

oItem = oForm.Items.Item("mat")

oMatrix = oItem.Specific

oColumns = oMatrix.Columns

' for coloum

colItemCode = oColumns.Item("#")

colItemdepthh = oColumns.Item("depth")

oDBDataSource = oForm.DataSources.DBDataSources.Add("@OBR1")

end sub

Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent

For i = 1 To Matrix.RowCount

sumdepth += Matrix.Columns.Item("depth").Cells.Item(i).Specific.Value

txttotal.Value = sumdepth

end sub

please help me?