JakeBullet70 Well-Known Member Licensed User Longtime User Sep 15, 2015 #1 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: Code: Copy Public puDefaultWidth As Int = 500dip When I try to access it it is set at 0. If in my app startup I do: Code: Copy c.puDefaultWidth = 500dip It works fine. Strangeness....
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: Code: Copy Public puDefaultWidth As Int = 500dip When I try to access it it is set at 0. If in my app startup I do: Code: Copy c.puDefaultWidth = 500dip It works fine. Strangeness....
udg Expert Licensed User Longtime User Sep 15, 2015 #2 Hi Jake, no B4A handy to test it, but could it be the "dpi" suffix? Try just Code: Copy 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
Hi Jake, no B4A handy to test it, but could it be the "dpi" suffix? Try just Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Sep 16, 2015 #3 There is no limit to the number of variables. If this error still occurs then please upload your project. Upvote 0
There is no limit to the number of variables. If this error still occurs then please upload your project.
LucaMs Expert Licensed User Longtime User Sep 16, 2015 #4 JakeBullet70 said: 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: Code: Copy c.puDefaultWidth = 500dip Click to expand... if you can set its value... the variabile exists, then the problem can not be the number of variables. F7 on its name? Upvote 0
JakeBullet70 said: 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: Code: Copy c.puDefaultWidth = 500dip Click to expand... if you can set its value... the variabile exists, then the problem can not be the number of variables. F7 on its name?
JakeBullet70 Well-Known Member Licensed User Longtime User Sep 16, 2015 #5 @LucaMs , the var does exist. It is just set to 0. @Erel , I will try a few things and get back to you. Upvote 0
@LucaMs , the var does exist. It is just set to 0. @Erel , I will try a few things and get back to you.