Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement