Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best and fastest way for making a cursor
Message
De
22/06/2007 08:57:22
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
22/06/2007 02:33:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01234669
Message ID:
01234965
Vues:
14
>>FIND THE RIGHT WAY TO DO STUFF AND ONLY DO IT! :)
>
>All right, All right, All Right! :)
>
>However, note that in this case we are talking about
>create cursor command and resulting memory cursor. Reusing it again with different alias is not likely an option. As soon as you close it; poof ... it is out of picture (memory) for good.
>
>Is this what you presented here only 'damage' that can happen or it can also
>burn toaster in adjacent room ?? :))
>Just kiddin' , but now real question;
>
>Is there any damage that can be caused to index key itself if field name is
>included when creating it? I belive that index created on a temp cursor this way is still healty;
>or I am mistaken ?

I don't think there is *anything* "healthy" about indexes built with included aliases. The fact that you'd have one in one case, but not in other cases is very very bad. Too many programmers IMO are not thinking about the advantages of "fewer" construction technique. Things should be done the same way everytime so it becomes second nature. Deviating from that standard approach should be done only after exacting analysis.

The only way I'd ever include the alias is if I built an index across two related tables. Of course I don't advise that either. Very rare :) I'd use SQL and produce a single cursor in that case.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform