R rodmcm Active Member Licensed User Longtime User May 8, 2018 #1 Hi I am a newbie to BA4 so please bare with me Most of the examples and tutorials I have looked show subroutines and the like actioned by events (Button click, Activity_Resume etc.) There seems to be no equivalent of a void() or main() constructs that continuously cycle where events and the like can be triggered. i.e. looking for serial inputs or updating items based on new information. What is the best way or the normal techniques to set this up in B4x?
Hi I am a newbie to BA4 so please bare with me Most of the examples and tutorials I have looked show subroutines and the like actioned by events (Button click, Activity_Resume etc.) There seems to be no equivalent of a void() or main() constructs that continuously cycle where events and the like can be triggered. i.e. looking for serial inputs or updating items based on new information. What is the best way or the normal techniques to set this up in B4x?
Erel B4X founder Staff member Licensed User Longtime User May 8, 2018 #2 There is no such loop routine in B4A. You can implement one quite easily but you shouldn't. rodmcm said: looking for serial inputs or updating items based on new information Click to expand... Use AsyncStreams. Tutorial about TCP/IP streams which are very similar to other types of streams: Upvote 0
There is no such loop routine in B4A. You can implement one quite easily but you shouldn't. rodmcm said: looking for serial inputs or updating items based on new information Click to expand... Use AsyncStreams. Tutorial about TCP/IP streams which are very similar to other types of streams:
R rodmcm Active Member Licensed User Longtime User May 9, 2018 #3 Thanks Erel.. Do you ever sleep? Upvote 0
LucaMs Expert Licensed User Longtime User May 9, 2018 #4 rodmcm said: Do you ever sleep? Click to expand... That's me Upvote 0