Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the previous object state
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00590354
Message ID:
00590359
Views:
23
>>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
>>...
>>
>
>
>Scatter and Gather from/to objectName can do the trick if you have a table
with the fields names that match your properties names...
>
>HTH


Forget it, it cannot help in your case.
You already have an object with methods...

Sorry :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform