Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REPLace .... or SCAN ....
Message
From
13/09/2002 16:48:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700335
Message ID:
00700352
Views:
9
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.

As you've already been told, both will work. However, the SCAN version only works if you don't have ORDER set to the flagged field.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform