Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do level exceeded error
Message
From
17/10/2001 17:07:05
 
 
To
17/10/2001 14:58:13
Leshel Rich
Plains Cotton Coop Assoc
Lubbock, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00569846
Message ID:
00569920
Views:
27
Hi Leshel.

>> Can someone offer any suggestions on how to clean up this code? My problem is that the customer number can have more than the allowed do nesting level occurrances of a specific sales order number. Below is the code for my DO WHILE. Note that the code is in a function called l_upddtl, and this code is calling that function, so there is a recursive call to that function within itself. HELP!!! <<

I did not have the time or the patience to wade through this line by line, but the most common cause for this sort of error when a routine is calling itself recursively is that you have neglected to declare one or more variables as local inside the recursive routine.

Variables that are not explicitly scoped as LOCAL ( or PRIVATE or < gasp! > PUBLIC ) are, by default, PRIVATE. This means that they can be "seen" by all routines that are called from the one in which they are created.
Previous
Reply
Map
View

Click here to load this message in the networking platform