General information
Category:
Coding, syntax & commands
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only