From what I can tell
inside a code module it is not possible to referrence lShiftDate.Text directly.
You can only return a value from a sub inside the code module:
'in module
uSub GetDate(datein As Long) As String
Main.lShiftDate.Text = "something"
End Sub
is not possible
from Basic4Android documentation:
"Calls the given sub. CallSub can be used to call a sub which belongs to a different module.
However the sub will only be called if the other module is not paused. In that case an empty string will be returned.
You can use IsPaused to test whether a module is paused.
This means that one activity cannot call a sub of a different activity. As the other activity will be paused for sure.
CallSub allows an activity to call a service sub or a service to call an activity sub.
Note that it is not possible to call subs of code modules.
CallSub can also be used to call subs in the current module. Pass an empty string as the component in that case.
Example:
CallSub(Main, "RefreshData")"
from this thread:
http://www.b4x.com/forum/basic4android-getting-started-tutorials/7541-static-code-modules.html#post42971
Erel state code modules cannot catch events
All this does indeed seem to be the case.
I just want to simply insert (include) code from other files however there seems to be restrictions on how that code and global variables/views can be shared among other modules.