Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REPLace .... or SCAN ....
Message
From
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:
00700423
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform