Are you asking if there is an SDK call to give you the number of parameters in a function?
Maybe if the functions were registered in the Registry a registry field could tell you the number of paramers per function....
Otherwise, ... make all the parameters OPTIONAL and...
Code:
Function HowManyParameters(OPT A As Long, OPT B As LONG, OPT C as Long) As Long Local HowMany As Long IF VarPtr(A)<>0 Then Incr HowMany IF VarPtr(B)<>0 Then Incr HowMany IF VarPtr(C)<>0 Then Incr HowMany Function = HowMany End Function
Leave a comment: