Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive loop and SCAN
Message
De
26/07/2002 22:51:45
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00683191
Message ID:
00683199
Vues:
57
>The SCAN/ENDSCAN only restores proper alias. It doesn't restore record pointer. I don't know what you're doing but maybe you can use USE ... AGAIN instead of using the same cursor. This way cursor became "local".

This would be a nice enhancement in the SCAN command.

As for what I am trying to do, here's the Recursive() method:
PARAMETERS tnNumero
LOCAL lnRecno
SCAN FOR NoParent=tnNumero
   ...
   lnRecno=RECNO()
   This.Recursive(Numero)
   GO lnRecno
ENDSCAN
So, as you can see, the method is calling itself. The only way I have succeeded to make it work, is by saving my pointer and restoring it back.
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