Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GLGDW 2006 - April 21-24, Milwaukee
Message
 
 
À
18/01/2006 12:49:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Conférences & événements
Divers
Thread ID:
01078694
Message ID:
01088105
Vues:
52
>>Again, HOW does it make the code less maintainable and what possible bug could be introduced? The nano-seconds (if that) of execution time?
>
>Maybe it's when the scan's alias is changed upstream. For instance, we used to Scan For through our table, but now have a cursor derived from it... and then we also have to remember to select the new alias at the end of the loop, where it still says Select MyTable. That's one more thing to maintain, and IMO, without a good reason.

Actually, the SCAN will work just fine even if you change its alias but not the SELECT at the end. The ENDSCAN still carries an explicit SELECT.

But like you, I'd be wondering "what's this doing here?". I'd be wondering if there wasn't some other block of code that was removed and the developer who removed it forgot to take a line.

Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform