[Gambas-user] Omitting brackets () on a method call

Bruce Steers 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.
> b
>

No need to explain,  I think you hit the nail right on the head there fella
thank you.
that was the piece of the puzzle i was missing :)

Respects.
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210903/f554818f/attachment.htm>


More information about the User mailing list