Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace All while not plStop
Message
From
26/06/2002 15:20:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00672137
Message ID:
00672624
Views:
8
Nadya,

Well, I was going to suggest adding "and !plStop" to the FOR clause, but I think REPLACE would still continue reading records to determine if changes should be made...

Is hitting the key actually triggering plStop to change values while the replace statment is in the middle of executing?

>
>I want to be able to stop the process.
>
>So, I have something like this
>ON ESCAPE plStop = messagebox('Are you sure you want to stop replace process?,36,'Stop process')=6
>
>So, user can hit ESC and the process would be stopped.
>
>That's the idea, and it similar to Sergey's SCAN solution, but SCAN is slower than one replace command.
>
>However, WHILE clause always makes the process to start from the current record, and I was not aware of it (or didn't realize it). So, in order to fix the problem my colleague put GO TOP at the top on the command button Click method. Unfortunately, there are multiple replaces under certain conditions, so this is still a partial solution...
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform