Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

event name

Status
Not open for further replies.

DBAchick

Programmer
Apr 27, 2000
61
Is there a way to find the exact name of an event - I have a label with a click event - I want to know the name of the event i.e. if the label is label10 and the event is a click event - can I find the string label10_onclick in any property
 
Hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm,

?Property? I don't think so.

Events procedures are 'created' from the object name concatenated w/ the "_" character and the "event", so you label10_onclick is the concatenation of the object name ("label10"), the underscore character ("_") and the event ("onclick"). The event doesn't 'exist' unless / until you install it. OnClick is a property of the control.

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Now back to the problem....

There is no way to get the event you are running in code.

I had a similiar situation where I needed the event for error logging.
What I ended up doing was hard coding the event in the error handler.

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top