B b4auser1 Well-Known Member Licensed User Longtime User Feb 24, 2016 #1 https://www.b4x.com/android/forum/t...teract-between-activities-and-services.18691/ CallSubDelayed makes it much simpler. It allows you to call a sub in a different service or activity. Click to expand... In iHttpUtils2\HttpJob.bas I see Code: CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me) where iHttpUtils2\HttpUtils2Service.bas is code module. So in B4i I can apply CallSubDelayed to Code modules. Is it possible to do the same in B4A ?
https://www.b4x.com/android/forum/t...teract-between-activities-and-services.18691/ CallSubDelayed makes it much simpler. It allows you to call a sub in a different service or activity. Click to expand... In iHttpUtils2\HttpJob.bas I see Code: CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me) where iHttpUtils2\HttpUtils2Service.bas is code module. So in B4i I can apply CallSubDelayed to Code modules. Is it possible to do the same in B4A ?
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2016 #2 From the tutorial: Note that you cannot use CallSubDelayed (or CallSub) with code modules. CallSubDelayed can be used with class instances. However the containing module will not be started if it is not already running. In B4i and B4J code modules can handle events and can be used as targets of CallSubDelayed or CallSub. Upvote 0
From the tutorial: Note that you cannot use CallSubDelayed (or CallSub) with code modules. CallSubDelayed can be used with class instances. However the containing module will not be started if it is not already running. In B4i and B4J code modules can handle events and can be used as targets of CallSubDelayed or CallSub.
B b4auser1 Well-Known Member Licensed User Longtime User Feb 24, 2016 #3 Thank you for detailed explanation. https://www.b4x.com/android/forum/t...-side-table-of-features-in-b4i-b4j-b4a.63924/ Upvote 0
Thank you for detailed explanation. https://www.b4x.com/android/forum/t...-side-table-of-features-in-b4i-b4j-b4a.63924/