Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date stamp problems
Message
De
07/05/1999 12:35:36
 
 
À
07/05/1999 11:47:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00214974
Message ID:
00216121
Vues:
54
>George I am still confused about how date/time stamps of files are working. I am experimenting with the following code and the date/time stamp doesn't seem to be reliably updated until I close the file. This is surprising considering I am even trying a FLUSH command. Can you do a little experimenting with the code below and give me your thoughts on what you see? Thank you!! -Tim
>
>use ANYTABLE
>=adir(af,"ANYTABLE.DBF")
>?af[1,4] && print out time stamp before changing table
>append blank
>flush
>=adir(af,"ANYTABLE.DBF")
>?af[1,4] && print out time stamp after append/flush - should be different
>use
>=adir(af,"ANYTABLE.DBF")
>?af[1,4] && print out time stamp after close - this seems to be reliable
>
>
>>>Thank you for your ideas, George.
>>>
>>>I just cloned the entire system into another area on the LAN and ran the test version. Whenever I added records, the date stamps *ARE* updated properly. Guess I will take a "snapshot" of the directory tomorrow, have my user enter some records, make sure she properly shuts down the app, then take another snapshot and compare the date/time stamps.
>>
>>>Dang it, this production support stuff is a drag...I was getting into learning VC++ until I was interrupted by this problem.
>>
>>Tell me about it. I go through stuff like this everyday. And people wonder why all my apps aren't converted from FPW 2.6 yet.< g > I've also been working on C++ for nearly a year (no time).
>>
>>Let me know if there's anything else I can help with.


File update timestamps do not occur with every write back to a file's content. It is only updated when the file is closed. This is normal, standard, OS behavior.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform