Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
The DO CASE with hundreds of CASEs seems a bit hard to digest. I am guessing that there is some commonality between the CASEs (many will have same code blocks). If they can be grouped, then I would try to make it hierarchical and step into the case one step at a time. Each CASE would have a method that would provide the next hierarchical step to be performed. Along the way the common code to a group can be performed. This might make it more easily understood?
Using a table to house the possiblities doesn't really make the code any easier to understand -- the hundreds of CASEs is now a table lookup with a EXESCRIPT() command. You are just trading where the code is typed. I have typically used tables (w/ Memos) if the code is to be dynamically changed/updated at run-time.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement