[Gambas-user] Passing parameters to a subroutine

Laurent Carlier lordheavym at ...626...
Tue Feb 12 22:04:38 CET 2008


Le Tuesday 12 February 2008 21:48:12 richard terry, vous avez écrit :
> If you have a sub eg
> Sub Example (param1 as string, param2 as boolean, param3 as integer)
>
>  ' bla bla do something
>
> end sub
>
> Can you make one or more of these parameters optional, eg must have param1,
> but if param2,3 are mising, the sytem dosn't complain?)
>
> Regards
>
> Richard

See OPTIONAL keyword
http://64.128.110.55/help/cat/methoddecl

++




More information about the User mailing list