Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Better way of coding this
Message
 
 
À
16/12/2008 10:26:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01367822
Message ID:
01367890
Vues:
8
Using a loop doesn't necessarily requires a macro substituion.

>OK, you didn't say in which way you wanted to "improve" the example code. So now you're saying there may be 1 - x textboxes, depending on "what was defined in the INIT of the instance"? Well do the loop THAT many times then.
>
>I imagine macro subs and one loop, with one defo would be better than 10, with only x used depending on "what was defined in the INIT of the instance".
>
>Also, I HATE repetition of the scope of an object within all its containers. It makes the code ugly and harder to read, as well as you have really long statements, sometimes going off the A4 page.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform