Welcome! Log In Create A New Profile

Advanced

WD14 passing object keyword as parameter

Posted by Malc 
Malc
WD14 passing object keyword as parameter
May 12, 2009 01:16PM
If you pass the current object as a parameter to another process/window etc, the Constructor event is called again:

e.g.

CMyClass is class

PROCEDURE DoSomethingWithMe()

// here I pass this current object to a form
Open(TestWindow, object)


// In the TestWindow Global Declarations

PROCEDURE TestWindow(poObject is CMyClass)
// at this point, the Constructor of CMyClass is run, even though the poObject
// is passed by reference and already instantiated
// This did not happen in WD12

Regards

Malc










Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: