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

AncestorReturnValue

Status
Not open for further replies.

VBmim

Programmer
Jun 25, 2001
361
BE
Hello

With the local variable AncestorReturnValue you can obtain the return value of the event from the ancestor script.
Is it possible to obtain the return value from a few ancestors back?
E.g:

Object 3 inherits from Object 2, which inherits from object 1.
An event in Object 1 returns a value, and I would like to catch it in Object 3. The event in object 2 has no code.

Is this possible?

Greetz

PBMim
 
Have you tried? The most you would have to do is add code to object 2 "Return ANCESTORRETURNVALUE"

Matt

"Nature forges everything on the anvil of time
 
The problem is that both object 1 and 2 are part of framework and I cannot change them. I can only change object 3.

Meanwhile, I did solve my problem in another way (without the need to know the return value of the event).

Thanks for your reply!

Greetz

VBMim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top