Solved

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

Posted on 2015-01-26
2
194 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 500 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
In this post we will learn different types of Android Layout and some basics of an Android App.
Six Sigma Control Plans
Progress

705 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