Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limit on the number of do case?
Message
From
25/08/2011 23:01:21
 
 
To
11/08/2011 10:38:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01520686
Message ID:
01521846
Views:
66
Hi Denis,

Usually, the program's complexities will increase as exponential when
decompose complex conditional statement.
----------------------------------------------------------------------------------------------------------------
| Structured Programming Commands | Maximum of Nested Level for VFP | Maximum of Nested Level for VFP Compiler |
----------------------------------------------------------------------------------------------------------------
| IF ... ENDIF | 63 | 143 |
----------------------------------------------------------------------------------------------------------------
| DO CASE ... ENDCASE | 31 | 143 |
----------------------------------------------------------------------------------------------------------------
| DO WHILE ... ENDDO | 63 | 91 |
----------------------------------------------------------------------------------------------------------------
| FOR ... ENDFOR | 63 | 91 |
----------------------------------------------------------------------------------------------------------------
| SCAN ... ENDSCAN | 63 | 91 |
----------------------------------------------------------------------------------------------------------------
| TRY ... ENDTRY | 63 | 91 |
----------------------------------------------------------------------------------------------------------------
As the maximum of nested level for VFP structured programming commands is 63,
some large program may happen "Structure nesting is too deep" error when decompose
complex conditional statement.

best regards.

Chen
2011.8.26
Welcome to VFP C++ Compiler: http://www.baiyujia.com/vfpcompiler
Previous
Reply
Map
View

Click here to load this message in the networking platform