>a Pause for 2  in the code to give the hard drive enough time to make sure the
file is fully written

I don't understand the theory behind your explanation for the Pause for 2.
There shouldn't be any reason to wait at all.  Those things are taken over by
the OS, not Rbase.  You should just continue to use your Pause 4, but you could
change the message in between file writes to indicate the completion of one and
the beginning of another..


----- Original Message ----- 
From: "Betaserver" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Friday, February 25, 2005 1:26 PM
Subject: [RBG7-L] - Pause & Pause For Behavior


I have a command file that is a simple loop that creates files on the hard
drive that I just converted from 6.5 to 7.1.  Prior to entering the loop I
place a simple Pause 4 using 'Please wait file creation in process'  Then we
enter the loop and one by one the files are created, but in between each run of
the loop I placed a Pause for 2  in the code to give the hard drive enough time
to make sure the file is fully written.  What happens is when it hits the pause
for 2 command, it places an OK button on pause 4 dialog box.  Then after the
pause for 2 command finishes, it erases the Pause 4 box off the screen
completely.  In RB 6.5 a Pause for N command never displayed anything nor did
it interfere with a Pause 4 window.  Is there anyway to stop/suppress the Pause
for N from taking over the Pause 4 window..  I suppose a work around is to not
use the pause for N command and replace it with a While counting loop.

Simple Example Test Code

pause 4 using 'this is a test'

set var vcount integer = 0
while vcount < 50 then
set var vcount = (.vcount + 1)

pause for 1  *( here you see an 'OK' Box appear on the Pause 4 window and then
after it
Finishes the pause 4 window is cleared *)
endwhile
return

Suggestions welcome.
Thanks
-- Frank



-- Frank Taylor, Systems Network Administrator
-- F.J. O'Hara Corp, Boston, MA
-- [EMAIL PROTECTED] - 617-790-3093

Reply via email to