The earlier solution could present a problem.
1) MB will continue executing when windoze acknowledges that app has
actually started
2) VB may not have created the text file in time before MB code continues
FIX) put file creation in MB before calling VB and then let VB kill the
file.
IN VB Form.Unload
IF FileExists("c:\AppIsRunning.txt") then KILL "c:\AppIsRunning"
......finish closing vb app
IN MB code
Open File "c:\AppIsRunning.txt" for output as #1
print #1, ""
Close File #1
'''''' launch VB app #1
DO WHILE FileExists("c:\AppIsRunning.txt")
LOOP
Open File "c:\AppIsRunning.txt" for output as #1
print #1, ""
Close File #1
'''''' launch VB app #2
DO WHILE FileExists("c:\AppIsRunning.txt")
LOOP
Trey Pattillo
[EMAIL PROTECTED]
http://www.wap3.com
------------------------------------------------
To ME or not to ME, that is the question.
For some it will be to Whistle
and indure the thorns and thistle.
For me it is not to ME, but to NT,
The OS for ME !
----- Original Message -----
From: Jos� Luis Armero
To: MapInfo-L
Sent: Tuesday, April 24, 2001 07:18
Subject: MI-L MI:How to detect when a user closes a program from mapbasic
Hello list,
If I launch a VB program from within MapBasic, is it possible to determine
when the user closes the program?
I need to wait for this program to run and then launch another one.
Thanks in advance,
Jos� Luis Armero
INCLAM, S.A.
Madrid, Espa�a
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.