不知道你要求保障的时两次的时间间隔,还是要求每次记录的时间点,但可以漏次。(即,0S、2S、4S)但由于意外,某一次时间过了,就不记录而直接记录下一次。
如果是第一种情况, 在 timer 中用以下结构试试
程序代码:
如果是第二种情况,在 timer 中只写以下内容
程序代码:
如果是第一种情况, 在 timer 中用以下结构试试

this.Interval=2000 ptime=datetime() **XXXX **你的代码 **XXXX if datetime()-ptime>=2 this.interval=1 endif
如果是第二种情况,在 timer 中只写以下内容

this.Interval=2000 thisform.pps *pps 为表单自定义方法程序,代码为你的代码。

dBase有人接盘了。