B4J Question Global constant

ZiX

Member
Licensed User
Hi,

I'm new in b4a. I've reading the docs and can't find any information about the right way of creating and using global constants. Can somebody explain how I can do that. For ex. I want to create constant newOrderState = 5 and then use it from any module.

P.S. Sorry - create this thread in wrong section. Move it to b4a pls.
 

keirS

Well-Known Member
Licensed User
Longtime User
Add a new code module and define your constants as Public const in the new module. Then you ran refer to them by the modulename.constantname in any module.
 
Upvote 0

ZiX

Member
Licensed User
Should I define it in Sub Process_Globals, or just

Public Const OrderState = 3

at the new line?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…