Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Apr 20, 1997

Event occurring at regular intervals in user object

Question:
Is it possible to activate an event or function at regular time intervals in a customer user object?

I've tried to defined a timer event using event id pbm_timer. But the problem is I can't use the TIMER function to activate this timer event because the TIMER function can only be used for the window. rdms: Informix Version: PowerBuilder 5.0 platform: Win 95

Answer:
It's not possible to create a timer for a non-visual object in PowerBuilder. This is a Windows -- not a PowerBuilder -- limitation.

The only way to do this is to open a hidden or small window (like the time on your MDI frame) and make it call an event in a publish/subscribe type object. Then your NVO can subscribe to the TIMER event of the object. Your small window with the timer will publish the TIMER message at regular intervals.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date