Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursivity in VFP
Message
De
05/04/2001 17:23:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00492527
Message ID:
00492550
Vues:
10
You are ABSOLUTELY right!

The problem was, again, 10" in front of the screen!


>Yes, VFP will recurse, but you have to be careful with your variables (i.e. keep them LOCAL), and you have to be careful with record pointers, and I think that's your problem.
>
>When you come into the function, you check COUPLES.ID_PH and if it's not equal to zero, then you put it into the array and then recurse. Let's say it recurses a couple of times, then it finally comes back. Now you're checking COUPLES.ID_PF. However, you are no longer on the same record because of the recursive calls you made.
>
>Try storing COUPLES.ID_PH and COUPLES.ID_PF into local variables right at the beginning of the FOLLOW procedure and use those in your code instead. Then I think it'll work.
>
>--Brad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform