realbasic-nug
[Top] [All Lists]

Re: Stupid date/time question

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: Stupid date/time question
From: "Craig A. Finseth" <fin at finseth dot com>
Date: Sun, 29 Oct 2006 12:51:53 -0600 (CST)
Cc: realbasic-nug at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <C1695891 dot 4B161%support at groundlevel dot net>
        ...
   Right. But what I was trying to test was to have the app constantly checking
   for that. I have it set under a button at the moment, but what I want is to
   have it beep if the current time is greater than a time set in an editfield.

This is easy.

- compute the time in the edit field
- get the current time (new Date)
- compute the difference
- set a timer to go off after that many seconds

That's it: no need to poll or fire the timer more than once.

Craig
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>