Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!portal!cup.portal.com!Bruce_H_Ring From: Bruce_H_Ring@cup.portal.com Newsgroups: comp.databases Subject: SQLWindows date/time question Message-ID: <33300@cup.portal.com> Date: 28 Aug 90 02:21:54 GMT Organization: The Portal System (TM) Lines: 47 wluo@brahms.amd.com (Wilbur Luo) asks a SQLWindows question: > How do you make a field in a form that gives a running current > date/time? > > (I.e., just have the current time running in the corner of the > application). I would have responded directly to your question, but now I can't find it! Before I answer the question, Gupta has a BBS where customers can post questions like this. The number is 415/321-0549. The BBS uses Telebit 2500 modems (8N1). For access to all areas, you'll have to be registered user (there's a form that the Gupta liaison for your site should have received if you're a customer). Those who aren't customers can get marketing info about Gupta products. Here's a code fragment for what you what (shown without the diamonds): Form Window: frmMain ... Contents Data Field: dfClock Data Maximum Data Length: Dynamic Data Type: Date/Time ... Message Actions On SAM_Timer Set dfClock = SalDateCurrent ( ) On SAM_Create Call SalTimerSet ( hWndItem, 1, 1000 ) ... Message Actions On SAM_Destroy Call SalTimerKill ( dfClock, 1 ) When you call SalTimerSet, the second parameter is the timer ID and the third parameter is how often (in milliseconds) for the timer to send the SAM_Timer message. Bruce Ring bruce_h_ring@cup.portal.com Gupta Technologies