Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert while scan
Message
De
28/03/2001 12:23:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00488698
Message ID:
00489501
Vues:
12
>>Unless you are doing some other processing within the SCAN...
>>I think the following approach gives an equivalent result. How about
>>
>>
>>SELECT 5678 AS empid,task FROM employee;
>>  WHERE empid=1234;
>>  INTO CURSOR curTemp
>>
>>SELECT employee
>>APPEND FROM DBF('curTemp')
>>
>
>Is there a reason your method would be better?

His method involves only three commands and no loops, using no variables. It has all the prerequisites it needs to be faster, easier to read/maintain, whatever you like. It's also not depending on the record pointer at any given time. It's simply clean and neat. Also, my personal preference is to see code getting simplified and accelerated at the same time - and this does it. Don't feel intimidated with this, I actually like it the best when I do that with my own code.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform