Solved

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

Posted on 2015-01-26
2
155 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
2 Comments
 
LVL 41

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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 …

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now