sub appstart
addevent("button1",Click,"ev1")
addevent("form1",MouseUp,"ev2")
addevent("timer1",Tick ,"ev3")
end sub
sub ev1
ev("Button")
end sub
sub ev2
ev("MouseUp")
end sub
sub ev3
ev("Tick")
end sub
sub ev(showtype)
MsgBox("Type " & showtype)
end sub
No. Just have one event Sub for each type of event then you know the Event type and can use Sender for the source of the event.for example i have 100 controls...and i must add 100 subs?
sub appstart
addevent("button1","Click","clickev")
addevent("form1","MouseUp","mupev")
addevent("timer1","Tick","tickev")
end sub
sub clickev
...
end sub
sub mupev
...
end sub
sub tickev
...
end sub
No, it is not possible. It would need a modification to Basic4ppc to save the event name as well as the sender name. Presently the event name is lost once the event sub has been identified by the Basic4ppc event code.maybe it's real with door dll and object "event"?