Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do nesting exceded
Message
From
15/07/2000 13:07:30
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00392852
Message ID:
00392891
Views:
17
Jim,

>>I don't think it has anything to do with DO WHILE, and FOR loops. It simply indicates that the level of function calls (either with DO program or the execution of a user define function) has exceeded the limit of 128 levels. I recall that in the FP 2.x day the limitation only was about 32 levels.
>
>Walter,
>
>It means either of the issues that you and Ed have raised.

hmmm, Can you backup this statement ? As far as I know a "Structure nesting is too deep (Error 1212)" occurs when you nest FOR and DO WHILE loops too deep (64 levels). The "Allowed DO nesting level exceeded (Error 103)" only occurs when the level of functioncalls exeeds the number of 128.

See the following program:
* Test.prg

IF VARTYPE(nLevel) # "N"
	nLevel = 1
ELSE
	nLevel=nLevel+1
ENDIF

FOR nX = 1 to 2
	FOR nY = 1 to 2
		FOR nZ = 1 TO 2
			?? nLevel
			DO TEST
		
		ENDFOR
	ENDFOR
ENDFOR
Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform