Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP control over other apps
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095695
Message ID:
00095709
Views:
17
>Hello All
>I am creating an application that after manipulation I close
>and then through a RUN command call a bat file that implements
>another application that uses this table. How can I stop my
>code from proceding at this point and only continue when the
>other application is finished with the table??

One of the possible ways:

You can use other table (or cursor) to control when the other application is finished.
*//---------
...
replace OtherTable.ApplicationFinished with .f. next 1
*
* other application must replace this field with .t. then finished
*
run ...
*
* the waiting loop here
*
do while !OtherTable.ApplicationFinished
*
* delay and checking for key press on any event (malfunction of other program etc)
*
*
enddo
*
* the other application is finished
*
*//---------

Alexander Grigorjev
Alex
Previous
Reply
Map
View

Click here to load this message in the networking platform