For example if I have a function call like below
Function callingMe()
Exit Function
and my Function call is like below
SomeObj.callingMe('1','2','3','4','5') // Variable number of arguments
Inside callingMe() function, I want to know arguments passed i.e 1,2,3,4,5 and the Object i.e SomeObj in above case.
You can use a
ParamArrayto accept a variable number of arguments.Update according to your question in the comments: To get a reference to the caller you must pass it in as a separate argument. Please note that all fixed parameters must come before the
ParamArray