Thank you but it was dead simple although, strangely, I had to write the
while loop with a less than rather than a greater than:

WHILE v2 > .v1 seemed a more logical way of expressing the wait to me for
some reason but it simply didn't come out of the loop that way around. It's
no big deal - just a puzzle.

By the way, to be really accurate it ought to test for when v2 gets over
59 - otherwise there might be a long wait!!

Regards,
Alastair.


----- Original Message ----- 
From: "David M. Blocker" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Saturday, February 26, 2005 4:46 PM
Subject: [RBG7-L] - Re: Pause & Pause For Behavior


> Very cool Alastair - nice alternative to PAUSE FOR...
>
> David Blocker
> [EMAIL PROTECTED]
> 781-784-1919
> Fax: 781-784-1860
> Cell: 339-206-0261

> > Snap! This has bugged me for ages and yesterday I added this code after
my
> > first pause:
> >
> > -- wait for batch file to fully write to disc before accessing...
> > -- (using PAUSE puts a button on the display)
> > SET VAR v1 INTEGER = (ISEC(.#TIME))
> > SET VAR v2 INTEGER = (.v1 + 3)
> > WHILE v1 < .v2 THEN
> >   SET VAR v1 INTEGER = (ISEC(.#TIME))
> > ENDWHILE
> >
> >
> > Regards,
> > Alastair.
> >
> >
> > ----- Original Message -----
> > From: "Betaserver" <[EMAIL PROTECTED]>
> > To: "RBG7-L Mailing List" <[email protected]>
> > Sent: Friday, February 25, 2005 6: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