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



Reply via email to