B4J Tutorial where to code put code when using multiple forms

I've started using B4J after using B4A for a few months. What is the best structure of the code when using multiple forms. Unlike B4A where each activity has its own code, or indeed with vb.net where code is associated with a form, B4J seems to require all the code to be in come place. I understand code modules and calling Sub's in those modules, but from what I have gleaned it seems that all form objects need to be in the main code module. Is this correct or what is best/better practice?

thanks
 

Roycefer

Well-Known Member
Licensed User
Longtime User
There is no special module for a Form in B4J like there is for an Activity in B4A. You can put code for other forms in a static code module or another class. You can also just leave it in the Main module and separate different Forms' code using #Regions. #Regions are collapsible which makes them very useful for navigating large modules. I recommend them.
 
Top