Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer event

Status
Not open for further replies.

anneoctaaf

Programmer
Dec 15, 2003
104
0
0
NL
I've got a mdi application. In the open event of my frame window "w_frame" i wrote the following code:
Timer(60)
So every minute it triggers the timere event of my w_frame.
In the timer event i've got this code:

If now() = lt_tijd then
openwithparm(w_planning, 1)
End if

lt_tijd is 09:00, so i want a window to open w_planning at 09:00. But this doesn't work. Can anybody help me?

Thanx!
 
I have not coded the timer for a while, so I am assuming that your chose of where and what you have coded is correct.

However, I think the problem might be that the time will never be exactly equal to variable x. Give it a range and see if that works...

IF time() < X and time > Y THEN
.
.
.
END IF
 
Timer(60)
So every minute it triggers the timere event of my w_frame.
In the timer event i've got this code:

If now() = lt_tijd then
openwithparm(w_planning, 1)
End if


wat i could understand from ur requirement is every one minute u want to open the w_planning
in the timer event do not have a check for now()...u can straight away call
openwithparm(w_planning, 1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top