Hi,
I have a problem to get a value from cell in a selected row from a matrix, below is my code (based on examples I found here on the forum):
oItem = oForm.Items.Item(2)
Dim loMatrix As SAPbouiCOM.Matrix
Dim lstrCode As String
loMatrix = oItem.Specific
oEditText = loMatrix.Columns.Item(1).Cells.Item(pVal.Row).Specific
lstrCode = oEditText.String
The big problem here is that I catch a contextmenu event, I right click a row and I choose to delete the row (so the record will be deleted in de database)
I have added some checks so I had to replace the 'normal' SAP event.
Due to this method I use, pVal.Row doesn't excist, The Column 1 is where the 'code' I use in my query is but how do I get the row index to set the selected row?
regards,
Bas Dekker
netherlands