on 11-11-2016 2:52 PM - last edited on 02-03-2024 7:06 PM by postmig_api_4
Hello I need delete some rows from a system matrix, the problem that I have it's when I instance the matrix into my variable this stops there and the code not continues, I don't know why. this is my code. the code stops on this line oMatrix = oForm.Items.Item(13).Specific
Private Sub SBO_Application_ItemEvent(FormUID As String, ByRef pVal As ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
BubbleEvent = True
If pVal.FormTypeEx = "65213" Then
If pVal.EventType = BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = False Then
Dim oMatrix As SAPbouiCOM.Matrix
Dim oProd As String
oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
oMatrix = oForm.Items.Item(13).Specific
For i = 0 To oMatrix.RowCount - 1
oProd = oMatrix.Columns.Item("ItemCode").specific.value
Next
End If
If pVal.EventType = BoEventTypes.et_FORM_CLOSE And pVal.BeforeAction = False Then
oForm = Nothing
End If
End If
End Sub
Hi Werner,
Try this:
oMatrix = oForm.Items.Item("13").Specific
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.