如果time事件中的程序没有执行完成,会执行下一个time事件吗?
我写了一个进度条程序,首先打开窗口:
在窗口的OPEN事件中写下:time(1)
然后在timer事件中写下:
DECLARE ....
OPEN.....
FETCH....
DO WHILE
数据库操作。。。。。
update 。。。
hpb_1.StepIt( )
FETCH
LOOP
由于数据库目前的数据较少,执行很快,我的疑问是:
如果time事件中的程序没有执行完成,会执行下一个time事件吗?
[解决办法]
感觉不会执行下一个Timer事件,建议楼主不要在Timer事件里写太复杂的代码
[解决办法]
string ls_1,ls_2time ldt_1long ii,jldt_1 = now()for j = 1 to 5 for ii = 1 to 5000 ls_2 = ls_2 + '1111111111' next ls_1 = ls_1 + ls_2 ls_2 = ''nextlb_1.additem(string(ldt_1) + "," + string(now()))