*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Unexpected event (missing RaiseSynchronousEvents): two
Check the unfiltered logs for the full stack trace.
** Activity (main) Resume **
one
two
What is the difference between CallSubX and CallSub? The number of parameters? I wouldn't use it for this. The compiler treats CallSub in a special way.
If you need to pass more than two parameters then pass them as an array or a custom type.
What is the difference between CallSubX and CallSub? The number of parameters? I wouldn't use it for this. The compiler treats CallSub in a special way.
If you need to pass more than two parameters then pass them as an array or a custom type.
Do you have an example how to pass array of strings and int with Callsub or using Type? i tried to pass an array but says signature does not match. I tried Type and i know im not doing it properly.
Type Multi(DataReceived As String, Index As Int, l As List)
Public Test1 As Multi
B4X:
Sub Test
Test1.DataReceived = "DKAJFKLDJ"
Test1.Index = 5
Test1.l.Initialize
Test1.l.Add("HLLLLLLLLLLLLLLL")
CallSub2(Main, "ProcessOBDDataSelfTestMessage", Test1)
End Sub
'This is at Main
B4X:
Sub ProcessOBDDataSelfTestMessage(T As Multi)
Log(T.DataReceived)
Log(T.Index)
Log(T.l.Get(0))
End Sub