Mandy,
to do something repeatedly with the timer is how it works, just don't disable it. A timer repeats its Timer() event every Interval milliseconds.
A Messagebox is not the best idea, as it just disturbs users, just display the information you want to display somewhere. Like in a label in the corner of your form, or use SET MESSAGE to display it in the status bar. Depends on how important that information is for you or your users. It doesn't change that a timer simply repeats what it does.
So again, you just need a timer for it, a timer that stays active. Here's a little example of a timer displaying the time, for simplicity:
Code:
Thisform.AddObject('TimeTimer1','TimeTimer')
With this class definition:
Code:
Define Class TimeTimer as Timer
Interval=1000 && every second
oLabel = .null.
Procedure Init()
_screen.ActiveForm.AddObject('lblTime','Label')
This.oLabel = _screen.ActiveForm.lblTime
This.oLabel.Visible = .t.
Endproc
Procedure Timer()
This.oLabel.Caption = Transform(DateTime())
Endproc
Enddefine
Using this as is, you get a label with default font and size that will be at top,left=0 in the top left corner of the form and display the time.
You can also, instead of defining a class, just use the Timer control, it's simply in the toolbar of VFP controls. Add one to the form design and then program it's Timer event. The only difference is that this isn't a reusable class, it's just the native basis timer VFP has programmed directly on the form.
Regarding your need, I misunderstood your goal was to just refresh the displayed data of the form to show what was inserted in the past minute or so.
If you want to display how many records were appended, well, you store how large the dbf or its reccount is and then subtract that from the next size or reccount and you can display that.
If you'd like to observe any changes to any dbf of a database DBC, then you'll need to store a lot of values to compare with each time. I don't know how detailed you want this. If you just want to observe the reccount of one DBF, well, then just set the caption or message to that.
Chriss