Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the previous object state
Message
De
06/12/2001 02:18:20
 
 
À
06/12/2001 00:55:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00590354
Message ID:
00590370
Vues:
26
Well, that seems to do the job.
LOCAL loList
loList=CREATEOBJECT('FournierTransformationList')
IF ...
   This.RecursiveLoop()
ENDIF

FUNCTION RecursiveLoop
LOCAL loList
loList=CREATEOBJECT('FournierTransformationList')
loList.CopyObject(This)
...

FUNCTION CopyObject
PARAMETER toList
LOCAL loObject,laFields[1],lnCompteur,lnCount,lcField,lcExec
lnCount=AMEMBERS(laFields,toList)
FOR lnCompteur=1 TO lnCount
   lcField=LOWER(laFields[lnCompteur])
   IF NOT INLIST(UPPER(lcField),'BASECLASS','CLASS','PARENT')
      lcExec='This.'+lcField+'=toList.'+lcField
      &lcExec
   ENDIF
NEXT
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform