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

bb adamnt42 at gmail.com
Fri Sep 3 17:29:34 CEST 2021


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



More information about the User mailing list