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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Defined Event

Status
Not open for further replies.

extempore

Programmer
Jun 1, 2001
71
US
Can someone send me the syntax for passing an argument to an user defined function(say "ue_test"). I want to pass the argument when I trigger the event. Thanks
 
THIS IS THE CODE PASSING AN ARGUMENT TO THE USER DEFINED EVENT
if ab_enable then
this.event ue_EnablePrint (ab_enable)
else
this.post event ue_EnablePrint (ab_enable)
end if



THIS IS THE USER EVENT

// ue_EnablePrint(ab_status) script for w_genapp_frame
// Enables/disables File/Print menu item, according to value of ab_status

m_genapp_frame lm_genapp_frame

// Enable or disable printing
lm_genapp_frame = menuid
lm_genapp_frame.m_file.m_print.enabled = ab_status

return ab_status

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top