Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 710
  • Last Modified:

calling Application.ProcessMessages from a Data Module

Hi,

I want to tell the user of my program that it is still working by updateing  Statusbar.Panels on the main Form from time to time.
As I remember I have to call Application.ProcessMessages in order to interrupt the calculations and display the new message.

But:
Neither in a data module nor in a unit (not the main form) 'application' is known.

My questions:

Is the way used principially ok ?
How to make 'application' known to dependant units ?

Thanks
K.-P. Becker
0
KPBecker
Asked:
KPBecker
1 Solution
 
BlackTigerXCommented:
just include "Forms" in the uses of that unit or the DataModule unit
0
 
KPBeckerAuthor Commented:
Thanks to BlackTigerX

That's it !

K.-P. Becker
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now