[Gambas-user] Values between forms..
    Benoit Minisini 
    gambas at ...1...
       
    Sat Nov  8 16:59:48 CET 2008
    
    
  
On samedi 8 novembre 2008, Doriano Blengino wrote:
> birchy ha scritto:
> > 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
>
> Perhaps a wrapper method should be used... with no gain (one thing
> public instead of another one - where is the improvement?).
>
This is an improvement because you have *only the needed* thing public instead 
of *everything*.
-- 
Benoit Minisini
    
    
More information about the User
mailing list