?
Solved

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

Posted on 2015-01-26
2
Medium Priority
?
207 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 42

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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Simple Linear Regression
Suggested Courses

752 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