Skip to Content

How can I use Invoke() function in SAP B1 SDK?

Hi all,

I have one problem of function (Invoke(x, New Object() {(text)})) which gives error message 'Invoke' is not a member of 'SysForm.SystemForm'. I think it does not work in SAP SDK,

Actually my codes look like this

    Private Sub myserialport_DataReceived(sender As Object, e As SerialDataReceivedEventArgs) Handles myserialport.DataReceived
    End Sub 
  Private Sub ReceivedText(ByVal [text] As String)
        If Me.textbox1.InvokeRequired Then
            Dim x As New SetTextCallBack(AddressOf ReceivedText)
            Me.Invoke(x, New Object() {(text)})
            Me.texbox1.text &= [text]
        End If
    End Sub

The problem is in line of Me.Invoke(x, New Object() {(text)})

I will replace texbox1 with SAP field

How can I use Invoke() function in SAP B1 or which function can replace it in SAP B1 SDK?

Please anyone can help me

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers