J
Jose Suero
Hi all
I have a dynamically created button, I can add an event handler with:
AddHandler button.click, AddressOf static_function
This works great, but what I need is to create a function that takes
the control, the event and the function as parameters, something like:
function addevent(control as object, event as string, functionname as
string)
AddHandler control.event, addressof functionname
end function
A solution for this would be to add a single function that handles all
buttons and select the correct action thru commandarguments, that
would work, but it's really not what i'm looking for.
Thanks in advance,
Jose Suero
I have a dynamically created button, I can add an event handler with:
AddHandler button.click, AddressOf static_function
This works great, but what I need is to create a function that takes
the control, the event and the function as parameters, something like:
function addevent(control as object, event as string, functionname as
string)
AddHandler control.event, addressof functionname
end function
A solution for this would be to add a single function that handles all
buttons and select the correct action thru commandarguments, that
would work, but it's really not what i'm looking for.
Thanks in advance,
Jose Suero