Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace All while not plStop
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00672137
Message ID:
00672146
Views:
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...

No surprise here. REPLACE FOR/WHEN keeps the file lock for the duration of the command.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform