Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the previous object state
Message
From
06/12/2001 00:55:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Getting the previous object state
Miscellaneous
Thread ID:
00590354
Message ID:
00590354
Views:
68
I have a recursive logic for my object. It goes like this:
LOCAL loList
loList=CREATEOBJECT('FournierTransformationList')
loList.Method()
...
IF ...
   This.RecursiveMethod()
ENDIF

FUNCTION RecursiveMethod
LOCAL loList
loList=CREATEOBJECT('FournierTransformationList')
...
Is there a way, once I am in the RecursiveMethod() to fill loList with the current object such as:
FUNCTION RecursiveMethod
LOCAL loList
loList=CREATEOBJECT('FournierTransformationList')
loList=This.AllProperties()
without having to do this:
FUNCTION RecursiveMethod
LOCAL loList
loList=CREATEOBJECT('FournierTransformationList')
loList.Property1=This.Property1
loList.Property2=This.Property2
...
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform