Click to See Complete Forum and Search --> : How do I view network time clock?


Kevin007
October 13th, 1999, 09:12 AM
I have a label button in my form. Normally if I want to view system time clock, all I have to do label1.caption = time(). This is system time clock not the server time clock. I don't know how to call and display network time clock on label1.caption.

Vlad Chapranov
October 13th, 1999, 04:44 PM
I've been looking for the answer for more simple problem. I needed to have server system time to use it when I make an update. I spent a lot of time before somebody gave me some idea. The solution is not simple. I use Open ...For Output statement to create an empty file on the server, close that file and use FileDateTime function with the name of that file as parameter. After that I kill this file. I have to check Time Zone settings on both computers to be sure that displayed time is correct. If you are not going to refresh your label very often, I think you can use this technic. There are more complicated methods with API, which did not work correctly.
Vlad

Lothar Haensler
October 14th, 1999, 01:25 AM
NetRemoteTOD is the API go get the remote Time Of Day.