Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limit on the number of do case?
Message
De
25/08/2011 23:01:21
 
 
À
11/08/2011 10:38:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01520686
Message ID:
01521846
Vues:
65
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform