it really depend of what you want to do :/ 2011/12/9 Jussi Lahtinen <jussi.lahti...@gmail.com>: > I don't know how to do this directly, but there are several ways to do it > indirectly. > Perhaps you need something like this: > > Public Function F1(...) As Integer > > Return F2(Param.All) > > End > > > Public Function F2(ArraOfParameters As Variant[]) As Integer > > Return ArraOfParameters.Count > > End > > But even better if you can change the structure of your program so that you > don't have to re-pass all the parameters. > BTW. Do you know command TypeOf() ? It may be useful with this case. > > Jussi > > > > > > On Fri, Dec 9, 2011 at 03:38, Bruce Bruen <bbr...@paddys-hill.net> wrote: > >> Hi folks, >> >> I'm looking for a way to pass all the ... parameters in a function call >> on to another function. >> >> In other words, I have a situation where I want to pass all the extra >> parameters, but I don't know/care how many there are, viz >> >> Public Function F1(sType as String,...) as Boolean >> If sType = "Basic" then >> ' process the call locally >> Else >> Return F2(???) ' where ??? is the set of Params received. >> Endif >> End >> >> Public Function F2(...) as Boolean >> If Param.Count=2 then >> ' process the call using method A >> Else If Param.Count=3 then >> ' process the call using method B >> Else >> Error.Raise("Illegal parameter set") >> EndIf >> End >> >> Is there a way to just pass all the extra params? >> >> regards >> Bruce >> >> ------------------------------------------------------------------------------ >> Cloud Services Checklist: Pricing and Packaging Optimization >> This white paper is intended to serve as a reference, checklist and point >> of >> discussion for anyone considering optimizing the pricing and packaging >> model >> of a cloud services business. Read Now! >> http://www.accelacomm.com/jaw/sfnl/114/51491232/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point of > discussion for anyone considering optimizing the pricing and packaging model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user
-- Fabien Bodard ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user