Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB 6.0 printer how to align 6 58
White board coding practice 3 79
When i run adoquery my application freezes 26 150
Advice in Xamarin 21 56
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

910 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

22 Experts available now in Live!

Get 1:1 Help Now