Hi guys,
I have a basic doubt. I am creating a B4j app where I need to define several constants which will be used by all the modules. right now I have a Constants module where I have all those constants but I was wondering if there is an alternative to reference those constants to use the ModuleName.ConstName systex. Ideally I would like to be able to use ConstName all over the project.
basically:
right now the "wish" solution only works if I define the constants in the module where that code is.
I have a basic doubt. I am creating a B4j app where I need to define several constants which will be used by all the modules. right now I have a Constants module where I have all those constants but I was wondering if there is an alternative to reference those constants to use the ModuleName.ConstName systex. Ideally I would like to be able to use ConstName all over the project.
basically:
B4X:
if var = ConstsModule.Const1 then
'do something
end if
'whish
if var = Const1 then
' do something
end if
.....
right now the "wish" solution only works if I define the constants in the module where that code is.