Hi All,
ResumableSub don't work in my code in a Non-UI project.
I got this message in Logs:
...
Waiting for debugger to connect...
Program started.
Program terminated (StartMessageLoop was not called).
...
I have "StartMessageLoop" in my code so why my code don't work?
This is my code:
Thank you
ResumableSub don't work in my code in a Non-UI project.
I got this message in Logs:
...
Waiting for debugger to connect...
Program started.
Program terminated (StartMessageLoop was not called).
...
I have "StartMessageLoop" in my code so why my code don't work?
This is my code:
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Wait For(ExtractKey2("item/1/tipo")) Complete (Result As String)
Log ("Result=" & Result)
StartMessageLoop
End Sub
Sub ExtractKey2(Dati As String) As ResumableSub
Dim indice As Int
Dati = Dati.Trim
Dati = Dati.ToUpperCase
indice = Dati.IndexOf("/")
Dati = Dati.SubString2(0, indice)
Return Dati
End Sub
Thank you