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

Reply via email to