Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursivity in VFP
Message
From
05/04/2001 17:23:37
 
 
To
05/04/2001 17:07:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00492527
Message ID:
00492550
Views:
9
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
Map
View

Click here to load this message in the networking platform