cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member183402
Participant
0 Kudos

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
        ReceivedText(myserialport.ReadExisting())
    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)})
        Else
            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

Accepted Solutions (0)

Answers (0)