Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code more logic
Message
De
01/09/2004 00:46:32
 
 
À
31/08/2004 12:13:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00937914
Message ID:
00938300
Vues:
28
Hi Terry,

I have no problem with the addition of a line like go top or locate as it can make reading the code later more undestandable and in most cases the performance impact would not be that great. However, many purists will argue that each estraneous line of code and especially one that causes additional moving of record pointers is inefficient and should be avoided whenever more efficient means are available such as the scope operator in the replace command.

Elmer

>Righto, Elmer.
>
>I still think it's best to stick to what you know'll work, rather than rely on the exceptions tho'. Besides, what extra effort is it to go top or locate? If you take a look at the next reply to my comment, some "lazies" miss out the ALL. Where do you draw the line? I think it best if Mohammed sticks to basics, no?
>
>:-)
>
>Terry
>
>>>Pleas note also that your originalcode should not have worked because you need to move the file pointer after a "Set Filter", ususally by "Go Top", before you do you table searches, updates. etc. on the filtered data.
>>
>>Hi Terry,
>>
>>Moving the record pointer is taken care of by the ALL scope in the replace commands specified.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform