Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REPLace .... or SCAN ....
Message
From
14/09/2002 18:25:11
 
 
To
14/09/2002 17:41:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700335
Message ID:
00700562
Views:
11
Don't you think the ALL might have something to do with it?

cheers

>>>
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform