Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date stamp problems
Message
 
To
07/05/1999 11:47:32
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00214974
Message ID:
00216136
Views:
32
>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
>
Hi Tim,

Let me add to what Fred told you. Much of the behavior is dependent on whether or not your sending writes to your local or network drive. I used the following snippet and have commented what the result were. The network, BTW, was Novell Netware 4.11, using MS Client for Netware. The tables were not buffered.
CLEAR
lcfile = DBF()
? FDATE(lcfile, 1) && Original
APPEND BLANK
? FDATE(lcfile, 1) && Showed no change on either local or network
lnseconds = SECONDS() + 10
DO WHILE lnseconds > SECONDS()
ENDDO
FLUSH
? FDATE(lcfile, 1) && Changed on local, no change on network
lnseconds = SECONDS() + 10
DO WHILE lnseconds > SECONDS()
ENDDO
USE
? FDATE(lcfile, 1) && Changed on both
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform