If I type in the following in the properties editor for a form's event handler, say onClick:
=myfunc(10)
then when the onClick event fires, my custom function is called with parameter 10.
But what about when I type the same thing in for a function like onUnload that passes a Cancel parameter to an event procedure? Can I access that parameter from a custom event handler function? I tried writing something like:
Public Function myfunc(i as integer, ByRef param as variant)
to see if the Cancel parameter would "show up." Can someone shed some light on what happens to the Cancel parameter or how I can access it?
Thank you!
=myfunc(10)
then when the onClick event fires, my custom function is called with parameter 10.
But what about when I type the same thing in for a function like onUnload that passes a Cancel parameter to an event procedure? Can I access that parameter from a custom event handler function? I tried writing something like:
Public Function myfunc(i as integer, ByRef param as variant)
to see if the Cancel parameter would "show up." Can someone shed some light on what happens to the Cancel parameter or how I can access it?
Thank you!
Last edited: