For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > July 2004 > What object / event called my function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author What object / event called my function
Scott

2004-07-06, 4:10 pm

If I'm in a function, is there a way to tell what object / event
called that function without passing it in as an argument or using a
global / instance variable?

Using Powerbuilder 7.0

Scott
Real Gagnon

2004-07-07, 3:59 am

> If I'm in a function, is there a way to tell what object / event
> called that function without passing it in as an argument or using a
> global / instance variable?


// dummy error code and error text
PopulateError(999, "notused")

Messagebox(error.object , error.objectevent)

Bye.
--
Real Gagnon from Quebec, Canada
* Looking for Java or PB snippets ? Visit Real's How-to
* http://www.rgagnon.com/howto.html
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com