Android Question Limit to global vars in a module.

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Hi all
Is there a limit to global vars in a module?
I have a module (it is named c as it holds only constants) that has 111 global vars in it. If I add number 112:

B4X:
Public puDefaultWidth As Int = 500dip

When I try to access it it is set at 0.
If in my app startup I do:

B4X:
c.puDefaultWidth = 500dip

It works fine. Strangeness....
 

udg

Expert
Licensed User
Longtime User
Hi Jake,

no B4A handy to test it, but could it be the "dpi" suffix?
Try just
B4X:
Public puDefaultWidth As Int = 500
and see if it's ok. I know that's not what you need, but it may lead to understand where the problem is.

udg
 
Upvote 0
Top