wluo@brahms.amd.com (Wilbur Luo) (08/15/90)
I'm starting out developing with SQLWindows by Gupta and I've got a quick question: How do you make a field in a form that gives a running current date/time? (I.e., just have the current time runnning in the corner of the application). Thanks. -W
Bruce_H_Ring@cup.portal.com (08/28/90)
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