Welcome Notes

Welcome Viewers

13 April 2017

Display ButtonCombo caption SAP B1

Dear All,
   Today , we will see to Display Button Combo Caption through SAP SDK.


   Friend Sub DisplayComboBoxcaption(ByVal oForm As SAPbouiCOM.Form, ByVal butComboUid As String, ByVal butComCaption As String)
        Try

            Dim oComButton As SAPbouiCOM.ButtonCombo = Nothing
            oComButton = oForm.Items.Item(butComboUid).Specific
            If butComCaption = "CopyFrom" Then
                oComButton.Caption = "Copy From"
            ElseIf butComCaption = "CopyTo" Then
                oComButton.Caption = "Copy To"
            End If
        Catch ex As Exception

        End Try


    End Sub