Hello,
I was wondering if it is possible to add part of code using something like
<include "xxx">
For Ex :
The goal is to have the main program smaller.
Or... Is there a way to collapse/expand part of the code (like for subs) ?
I read in the "beginner's guide" and "B4A Tutorial" that I can use the
modules but this is not the same and this is supposed to declare ALL
VARIABLES in Process_Globals sub. So Erel wrote :
Is there anything I misunderstood ??
Thank you,
William.
I was wondering if it is possible to add part of code using something like
<include "xxx">
For Ex :
B4X:
Sub Activity_Create(FirstTime As Boolean)
<include "player_initialisation.bas">
<include "balls_initialisation.bas">
End Sub
Sub timer1_Tick
<include "manage_balls.bas">
etc...
End Sub
Or... Is there a way to collapse/expand part of the code (like for subs) ?
I read in the "beginner's guide" and "B4A Tutorial" that I can use the
modules but this is not the same and this is supposed to declare ALL
VARIABLES in Process_Globals sub. So Erel wrote :
Process variables -
NOT ALL TYPE of objects can be declared as process variables.
All of the views for example cannot be declared as process variables.
The reason is that we do not want to hold a reference to objects that should be destroyed together with the activity....
Is there anything I misunderstood ??
Thank you,
William.