Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REPLace .... or SCAN ....
Message
De
14/09/2002 08:44:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/09/2002 20:46:22
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00700335
Message ID:
00700486
Vues:
15
>>Hello Foxperts,
>>
>>Is the following code 'proper'?
>>REPLACE reprints WITH reprints+1 FOR flagged="P"
>>REPLACE flagged WITH "O"  FOR flagged="P"
>>or should I do this:
>>SCAN FOR flagged="P"
>>  REPLACE reprints WITH reprints+1, flagged WITH "O"
>>ENDSCAN
>>
>>Any comment and critique gratefully accepted.
>
>
>
>REPLACE reprints WITH reprints+1 ;
>   flagged WITH "O":
>   FOR flagged="P"
>
>Provided you don't have a current order on flagged. Much faster than two replaces.

Dragan,
Unlike scan..endscan I think this wouldn't be affected by current order.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform