Android Question Using Constant Names

TestMyChess

Member
Licensed User
Longtime User
What do I need to do to allow me to write

SV.Panel.AddView(lbl, 0%x, 0%y, 100%x, WRAP_CONTENT)

rather than

SV.Panel.AddView(lbl, 0%x, 0%y, 100%x, -2) ' -2 = WRAP_CONTENT

Thanks.

John
 

TestMyChess

Member
Licensed User
Longtime User
So there's no way to use standard constants without defining them as variables? No "include file" mechanism?

John
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You can write a code-module (and add the module to your project) and in this you can declare all contants you need. You then can use
B4X:
nameofcodemodule.constantname
to use constantname.
 
Upvote 0
Top