Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pausing for completion of a RUN command
Message
 
À
21/11/2006 11:36:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01171227
Message ID:
01171478
Vues:
8
Hi

Ed Rauh's download of api_run class for such a situation is great.

>Recognizing when it terminates. I don't exactly remember the sequence but roughly what happens is:
>
>-Launch word instance 1 using this code (or similar)
>-From another session launch another word
>
>One of them was immediately returning as if word is terminated (I dont' remember exactly as I said - it might be instead 2nd watcher is returning when 1st instance terminated, only one of them is waiting IOW and it was the case if I used WaitFor* winAPI too).
>Cetin
>
>
>
>>I guess I could play around with it and see if it can be done. Which part failed? Does the app fail to launch or does the code fail to recognize when the process is terminated?
>>
>>
>>>I didn't ask for him, asked for myself:) I thought I might have given up early.
>>>Cetin
>>>
>>>>Honestly, no. I've only ever used it to launch non-automation supported apps from within VFP when I want to pause processing until the external app is closed. I wouldn't go this route for automation supported apps. Is he wanting to do that? I must have missed that part of the message...
>>>>
>>>>
>>>>>Tracy,
>>>>>Have you ever tried this with office applications like word? Last time I tried to build something around this it was failing (one of the instances were returning immediately - word behaves like an MDI while Excel like an SDI) if I call it for a 2nd instance of word and I gave up.
>>>>>Cetin
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform