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.
Printable View
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.
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
NetRemoteTOD is the API go get the remote Time Of Day.