FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Set time
Posts: 37
Joined: Sun Aug 03, 2008 08:02 AM
Set time
Posted: Tue Feb 24, 2009 05:22 PM

Hi all,
is it possible to set the system time from within my app ?
(i am connected to an GPS system and want to have the same time on my handheld)

Best regards

Wolfgang Ciriack
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Set time
Posted: Wed Feb 25, 2009 12:17 AM
Wolfgang,

Here you have a working example:
Code (fw): Select all Collapse
#include "FWCE.ch"

function Main()

   SetTime( 11, 15, 00, 00 ) // 11:15 (0 secs, 0 millisecs)

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 37
Joined: Sun Aug 03, 2008 08:02 AM
Re: Set time
Posted: Wed Feb 25, 2009 07:00 AM

Thanks Antonio, that is quite simple :D

Best regards

Wolfgang Ciriack

Continue the discussion