Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace All while not plStop
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00672137
Message ID:
00672150
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
>>>I know, I can use SCAN, but I want to understand, what's wrong in this syntax. It's not obvious to me, why this command doesn't work, as I think, it should.
>>>
>>>I probably don't understand WHILE and FOR. If I do replace all while not m.plStop what does it exactly doing?
>>>
>>I would expect it to do replace until EOF is reached or m.plStop became .T.
>
>I would to, but it doesn't work this way. It's weird.
>
>Anyway, I think, your SCAN suggestion should be the way to go. It would require some code changes and, according to my tests, one replace command works faster than SCAN REPLACE ENDSCAN construction...

Also -- When you have a SCOPE clause in the REPLACE, there is no need for ALL.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform