Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2740

Re: Displaying the total

$
0
0

Dear Pedro,

 

I have created a Total button to solve my issue but there is a problem.

 

I made the code as follows:

 

If pVal.ItemUID = "btnAmnt" Then

                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then

                    If pVal.BeforeAction = True Then

                        Try

                            Dim oForm As SAPbouiCOM.Form

                            Dim oMatrix As SAPbouiCOM.Matrix

                            Dim sum As Double = 0

                            For row As Integer = 0 To oMatrix.RowCount - 1

                                Dim val As Double = oMatrix.RowCount("Amount", row)

 

 

 

 

                                sum += val

                            Next

 

 

                            oForm.Freeze(True)

                            oForm.Freeze(False)

                        Catch ex As Exception

                            SBO_Application.StatusBar.SetText("Column total button must be pressed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)

                            SBO_Application.Forms.Item(FormUID).Freeze(False)

                            BubbleEvent = False

                        End Try

 

 

                    End If

 

 

                End If

            End If

 

 

but failed.

 

The error message is :

 

'Public ReadOnly Property RowCount As Integer' has no parameters and its return type cannot be indexed.

 

Please help to solve this issue

 

 

Thank you

 

Regards,

Steve


Viewing all articles
Browse latest Browse all 2740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>