[Gambas-user] VariadicFunction to understand extra arguments

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Dec 16 19:07:14 CET 2020


It's quite simple. If the function/method uses "..." in the argument
declaration, then you can see the arguments by iterating:
For Each hVariant In Param
Or as an array:
Param.All[iIndex]


Jussi


On Wed, Dec 16, 2020 at 7:04 PM Gianluigi <bagonergi at gmail.com> wrote:

> I have added to the Farm an example (VariadicFunction) which I hope will
> be useful in understanding the extra arguments.
> Obviously as long as I have understood this well. ☺
> I communicate this because in the wiki (
> http://gambaswiki.org/wiki/lang/methoddecl) the explanation of the extra
> arguments seems very confusing. 😞
> I ask an English-speaking colleague if he can intervene.
>
> Thank you
>
> Gianluigi
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201216/5ac763ca/attachment.htm>


More information about the User mailing list