>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)
APPEND BLANK
? FDATE(lcfile, 1)
lnseconds = SECONDS() + 10
DO WHILE lnseconds > SECONDS()
ENDDO
FLUSH
? FDATE(lcfile, 1)
lnseconds = SECONDS() + 10
DO WHILE lnseconds > SECONDS()
ENDDO
USE
? FDATE(lcfile, 1)
hth,
George
Ubi caritas et amor, deus ibi est