Delphi Pages Forums

Delphi Pages Forums (
-   General (
-   -   A simple forgotten question (

kate 12-02-2006 09:04 AM

A simple forgotten question
I wrote a few functions and procedures in my Delphi Unit1(Form1) application. Progressively,my codes are getting accumulating and getting longer and longer. So, I create a separate pas file and called it 'misc.pas'. I moved a few of my functions and procedures to this 'misc.pas' and include misc.pas into my project so that the procedures and functions can be found by Delphi.

Now, some of my functions and procedures uses 'Application.ProcessMessages' so as to let my application freezes less. The TROUBLE here is that Delphi complained that it cannot understand the term 'Application' - apparently pointing to Application.ProcessMessages that I have moved to the 'misc.pas'.

Question: What do I have to put infront of 'Application.ProcessMessages' or do I have to include something to make Delphi understand it.

Thank you for your kind assistance.

digitiger 12-02-2006 11:35 PM

RE: A simple forgotten question
Just add unit named "Forms" to the uses clause of your misc.pas

hope it helps and if it does then do accept the answere.

All times are GMT. The time now is 12:41 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.