2 Replies Latest reply: May 22, 2012 4:04 PM by Deepak Vadithala RSS

    Optional Argument in Sub or Function

    Ronald Sunter

      Using QV10 SR3.  Can you create a Function or Sub with an optional argument?  For example, can I create a Function like:

       

      Function AddEmUp (a, b, optional c)

        AddEmUp = a + b + c

      End Function

       

      Here, the argument c is optional...so it works if I pass it two or three arguments.