[Gambas-user] Omitting brackets () on a method call
bsteers4 at gmail.com
Fri Sep 3 18:30:15 CEST 2021
On Fri, 3 Sept 2021 at 16:30, bb <adamnt42 at gmail.com> wrote:
> On Fri, 2021-09-03 at 15:39 +0100, Bruce Steers wrote:
> > Is there a method to enable or is it just some things that let you
> > use ()
> > in a method call or not?
> > Like for example I can call
> > MyObject.Refresh()
> > Or
> > MyObject.Refresh
> > Both work.
> > I'm finding all my methods NEED brackets() or i get an error.
> > cheers all :)
> > BruceS
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> You should only need to use () if the method is a function, i.e. the
> declaration has an "As " at the end.
> Explain "all my methods" though.
No need to explain, I think you hit the nail right on the head there fella
that was the piece of the puzzle i was missing :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User