OK. Keep this solution in mind though if you have any condition where you might have an MDI form separate that you need to keep using. All you have to do is add PROCESSMESSAGE in the While Loop and you are good to go...

----- Original Message ----- From: "TOM HART" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Saturday, February 26, 2011 8:22 PM
Subject: [RBASE-L] - Re: Pausing within an EEP


actually I looked at the launch help and found I could

launch filename.exe||w and it will pause until that program is finished




________________________________
From: Mikeb <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Sat, February 26, 2011 6:02:09 PM
Subject: [RBASE-L] - Re: Pausing within an EEP

If the other process has the ability to write to a file on completion, you can have RBase check for the file. If it has the ability to write to the $Environ
you can check for the value of the environment variable.

You could do this checking in your eep in a while loop, but to keep from
freezing the processor, you could use the windows API Sleep function called
using DLCall.

In your eep:
set var vFound integer = 0
set var vLoop Integer = 0
set var vRet Integer = 0
-- next var vSleep is the ms to sleep
set var vSleep integer = 500
If chkFunc('Sleep')) = 0 then
STDCALL void 'Sleep' (integer)
endif
-- The Sleep function doesn't return a value but DLCall still has to have the
syntax structure as if it does

-- Set the max number of loops for your while loop to run before timing out
while vLoop < 20 and vFound = 0 then
SET VAR vret = (dlcall('Kernel32','Sleep', vsleep))
-- Some code to check for a file or environ variable
 -- if (the file or environment variable is found) then
    -- set var vFound = 1
     -- else
      -- Set var vFound = 0
   -- endif
set var vLoop = (.vLoop + 1)
Endwh




----- Original Message ----- From: "TOM HART" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Saturday, February 26, 2011 6:17 PM
Subject: [RBASE-L] - Pausing within an EEP


I have an eep that first goes outside of Rbase to do something then with that
I
proceed with the eep. If I put a pause 2 between the to processes it works, however, with no pause Rbase with start doing its thing before the first is complete. How do I get the first process to run and upon completion do the
second part.
Tom Hart


--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to