在一个窗口中可否有多个timer事件 ,
并且触发的时间不一样
------解决方案--------------------
导入下面的uo_timing对象
$PBExportHeader$uo_timing.sru
forward
global type uo_timing from timing
end type
end forward
global type uo_timing from timing
end type
global uo_timing uo_timing
type variables
window iw_user
end variables
on uo_timing.create
call super::create
TriggerEvent( this, "constructor" )
end on
on uo_timing.destroy
TriggerEvent( this, "destructor" )
call super::destroy
end on
event timer;iw_user.TrigGerEvent("timer2")
end event
窗口新建个timer2事件,在这个事件里实现其他操作
窗口open调用timer2
uo_timing u_time
u_time = create uo_timing
u_time.iw_user = THIS
u_time.start(1000)