Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find out if the same PB app is running?

Status
Not open for further replies.

pbbins01

Programmer
Mar 26, 2007
7
0
0
US
I have a PB app that is already running. Now when I open the same app again (second time) I need to find out if the app is already running or not. How do I do that? I thought OpenChannel would work by passing the app name. But it did not.

Thanks
 
In your application object open event try:
Code:
long ll_handle

ll_handle = handle(this,true)

IF ll_handle <> 0 THEN
 // previous copy running
END IF
Matt

"Nature forges everything on the anvil of time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top