This is only really a quality of life issue but is it possible to include a separate file with Type, Const and Global Public definitions in so it can be shared with all Modules?
This way I can manage the shared stuff in one place, rather than having to update multiple code when I make a change.
I have tried creating an additional Code Module and this works for Type definitions but not for Const and Global Public variables
My include.bas looks like this:
B4X:
Sub Process_Globals
Public const NO_REQUEST_MSG_SET As Int = -1 ' an attempt to send a message has been made but no Message has been set
Public Sucessful As Boolean ' the last operation was successful
Type DBResult ( _
Columns As Map, _
Rows As List, _
Cursor As Int, _
NoRows As Int)
End Sub