When running 2 powerbuilder apps how to you ensure one keeps the focus until closed?

jeannepjones
jeannepjones used Ask the Experts™
on
I have a pb app that is a menu, when a option is picked it starts a new pb app by using            run('c:\Program Files\CIS Label Generator\labels.exe' )  that works fine, but sometimes the pc switches back to the menu screen (then it confuses the users) with the label screen is still open.  How to I keep the label screen the screen on the pc until it is closed? then they go back to the menu.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
With run function actually don't have control over another application. Instead I would suggest to download the custom pb object from below link and use it according to your need. Basically it gives control over another application while still it's running. In your menu application you can check if another process you started from it is still running or not. And it's free!!!!!!!!

http://www.topwizprogramming.com/freecode_runandwait.html

Regards,
Sandeep

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial