Help Module

m4u

Member
hi
I have some problem with modules :sign0085:, for example a simple Paint where the MAIN module is for draw and a second module is for chose the colors.
How can i open the module for the color?
With the public declaration used for variable in all module?


thank
 

mjcoon

Well-Known Member
Licensed User
With the public declaration used for variable in all module?

That is necessary, but also to include the name of the module, such as:
B4X:
Main.Picture
in module Second, or
B4X:
Second.ColourChoice
in module Main

In the Help under the heading "Modules" it says:
Access modules from other modules

Accessing public subs, global variables, objects or controls from a different module is done by writing the module named followed by a period and the field name.
HTH, Mike.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…