Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

In Power Builder 12.5 how can I have multiple timers active in one framewindow?

Posted on 2015-01-26
2
Medium Priority
?
224 Views
Last Modified: 2015-02-02
Basically I have two timer calls in my framewindow's event timer for different purposes like this:
//timer1
Timer(60, this) //for doing something
if FileExists("file.htm") then
  //timer2
  Timer(0, this)
  //some additional code
end if

They seem to interfere. Is there some way they coexist? Or should I use the one minute timer for both tasks and hope for the best?
0
Comment
Question by:guruluuseri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
pcelba earned 2000 total points
ID: 40571710
Maybe they still didn't fix the bug known from earlier PB versions: http://www.experts-exchange.com/Programming/Editors_IDEs/Q_23676204.html

To use one timer for both tasks is also good work around.
0
 

Author Closing Comment

by:guruluuseri
ID: 40583477
I ended separating those timers by making a timer object for timer1 and leaving timer2 as it was:

// w_frame.open
/* n_ini_timer (timer1) */
inv_ini_timer = create n_ini_timer
inv_ini_timer.Start(inv_ini_timer.of_get("timerFrequency"))
/************/
--------------------------------------------------------------------
// w_frame.timer
if FileExists("file.htm") then
  //timer2
  Timer(0, this)
  //some additional code
end if
--------------------------------------------------------------------
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Simple Linear Regression
Starting up a Project

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question