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

Amazingly, you're right! :)

Here's proof:
CREATE CURSOR temp (nfld i, cfld c(10))
FOR i=1 TO 20
	INSERT INTO temp (nfld, cfld) VALUES (RECNO(), "abc")
ENDFOR
INDEX ON cfld TAG fld

replace ALL nfld WITH nfld*10;	
	cFld WITH TRIM(cFld)+"d"
	
browse

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