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:
00672144
Views:
8
You are replacing while a memory variable is either T or F. So, if the memvar is .F., nothing happens. Nothing in the REPLACE is changing the value of the memvar unless you have some UDF in the command. The use of FOR and WHILE in a REPLACE does work,, it is just usually used with a logical test of some field in the record set.

>Hi everybody,
>
>In order to allow to stop the replacement process I use the following command:
>
>replace all while not m.plStop
>
>or
>
>replace for ForCondition while not m.plStop
>
>We just discovered, that these commands don't replace records in the whole file.
>
>Could you please explain me, what's wrong? And how can we interrupt the replace command?
>
>Thanks in advance.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform