Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer + SYSFORMATS = Headache!
Message
De
08/01/2002 23:04:31
Tl Chua
Information Solutions
Kuala Lumpur, Malaisie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Timer + SYSFORMATS = Headache!
Divers
Thread ID:
00602353
Message ID:
00602353
Vues:
54
Continuing the saga of the dissappearing form, I went on to continue writing the program with a Timer class.

Since I needed one textfield to show the DateTime, I used "Set Sysformat On" in the INIT of the form to let the user see the date & time started as set under Windows Environment. To test the timer out, I placed another TextBox to show the current time, controlled by Timer set at 60,000 intervals (i.e. 1 minute). Happily, I compiled into EXE.

As the GoodBook (i.e. VFP) says, Timer is not exact or accurate, so I took it as gospel truth. So when I ran the EXE, the CurrentDateTime controlled by Timer didn't update exactly on time. I sort of expected it but when it decides to only update whenever there is some activity on the screen, eh! what's that? Not only that, it hangs the system clock also. SO I let the screen sit quitely by itself for over 5 minutes and still the CurrentDateTime is not updated by Timer. Then I doubleclick the system clock and saw that it hang unless I move my mouse, then it jump to current time and then stop again until I move my mouse again.

Hmmm... This problem has got to be between VFP and Windows, but what?

Then I remembered that I place "Set Sysformat On" in the INIT of the form. Whatif I remove it? You know the rest of the story.

Anymore crazy stories of the TimerZone?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform