I am new to VFP OO coding & am having problems with one object modifying the properties of its parent.
ex.
oOne is created from a nonvisual class (OBJECT1), it creates an instance of OBJECT2 (oTWO), another class defined in the same prg file.
Part of oTWO's job is to update a counter in oOne, so I include the following code in one of OJECT2's methods:
THIS.PARENT.counter = THIS.PARENT.counter + 1
When it executes I get the error message that THIS.PARENT is not an object & the debugger confirms this, parent = (none)
I don't understand this at all. How could an oject created by another NOT have a parent value filled in?