Date: Fri, 29 Jun 2001 13:38:56 GMT
Reply-To: Jim Manganello <Jim.Manganello@US.BOSCH.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jim Manganello <Jim.Manganello@US.BOSCH.COM>
Organization: Robert Bosch Corporation
Subject: Re: Timer in SAS/AF
"Søren Damgaard Laursen" <sdl@tdk.dk> wrote in
news:9hht9m$a15$1@news.inet.tele.dk:
> Thanks for the tips supplied...
>
> Though I forgot to mention one thing. The control in the frame should
> not be taken over by the program/code in the waitstate of the 1000 ms.
>
> Think of my timer as for example doing the following:
> Updating a textlabel in the frame every 1000 ms with the current time,
> and, this is important, without disturbing the user. Something like an
> asynchronous rsubmit:-)
>
> By the way: Platform is Win2000, SAS 8.2
>
> Regards
> Søren Laursen
>
If the users will be constantly interfacing with the frame, you might try
adding code to the MAIN section of the SCL code.
For example:
use a extended input field component (called DTIME), set the format as a
datetime.
Then :
MAIN:
dtime=datetime();
refresh;
return;
This will keep updating as users are using the screen. It won't be
automatic, but it should update every time anything is done on the frame.
Regards,
Jim Manganello
|