Hello,
I have a lot of sub routines that execute some poststrings actions with an ASP API.
So i have put the whole in a separate Code Module , like for example sending email directly via the API (its more simpler and lighter for the app) :
But, in that case, as i can't use a "wait for" in a static module ( to receive the return event )
i have to check directly the success value.
will i receive a prospective different behavior (without the "wait for" line ) of my app when i use that simple routine ?
Regards
Michel
I have a lot of sub routines that execute some poststrings actions with an ASP API.
So i have put the whole in a separate Code Module , like for example sending email directly via the API (its more simpler and lighter for the app) :
B4X:
Sub SendAnEmail(QSTT As String, QSMESS As String, QSNAME As String, QSMAIL As String, QSFOOT As String, QSSUBJ As String)
Dim jobsm As HttpJob
Dim Params As String
Params = "QSTT=" & QSTT & "&QSMESS=" & QSMESS & "&QSNAME=" & QSNAME & "&QSMAIL=" & QSMAIL & "&QSFOOT=" & QSFOOT & "&QSSUBJ=" & QSSUBJ
jobsm.Initialize("SendEmail",Main)
jobsm.PostString(Main.BoWebSite & "/Asp/SendMail.asp", Params)
' Wait For (jobsm) JobDone(jobsm As HttpJob)
If jobsm.Success Then
Log(jobsm.GetString)
End If
jobsm.Release
End Sub
But, in that case, as i can't use a "wait for" in a static module ( to receive the return event )
i have to check directly the success value.
will i receive a prospective different behavior (without the "wait for" line ) of my app when i use that simple routine ?
Regards
Michel