Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REPLace .... or SCAN ....
Message
From
14/09/2002 08:44:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/09/2002 20:46:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700335
Message ID:
00700486
Views:
14
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform