Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REPLace .... or SCAN ....
Message
De
14/09/2002 17:41:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
14/09/2002 08:44:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00700335
Message ID:
00700559
Vues:
18
>>
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform