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

Click here to load this message in the networking platform