>Hi George,
>
>Thanks ..this worked great but I am confused about one thing.
>
>I have in a timer the isrun_32 code and I am checking for an application
>called "QuestPDM". If it is not found the second app terminates.
>
>Fine, But I noticed at the moment I activate the "QuestPDM". The other program immediately closes. A little testing seems to indicate (at least I think this is what is going on.) that at the split second a foxpro application is activated the title bar caption seems to change to something else perhaps Microsoft Visual Foxpro or "".
>It does not seem noticable on the screen to my eyes but when I run isrun_32 in a timer every 1 second it seems to think the application is no longer running the moment I activate it.
>
>Any ideas?
Try using the TITLE option in the configuration file. By default, the title is "Microsoft Visual FoxPro". If this is changed in the main program, momentarily, the VFP uses the default and then changes it when it hits that line of code. I haven't tested it, but since the configuration is loaded before any of the main program code executes, it may provide a solution.
George
Ubi caritas et amor, deus ibi est