[Gambas-user] Values between forms..
Benoit Minisini
gambas at ...1...
Sat Nov 8 16:51:24 CET 2008
On samedi 8 novembre 2008, birchy wrote:
> Bugzilla from gambas at ...1... wrote:
> > One of the rules of good programming is making the less possible things
> > public
>
> I totally agree with this, but if we have a project rich with progress bars
> and other graphical displays, it is not uncommon to write a class or module
> to handle them. Perhaps i have misunderstood how to do this in Gambas. How
> would i do this from a class without making the controls public?
>
> PUBLIC SUB test()
> FMain.Label1.Text = "TEST"
> END
Then you make a public method just for that. This is the rule I was talking
about: the public interface of your class must be minimal.
Regards,
--
Benoit Minisini
More information about the User
mailing list