Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2006, 09:04 AM
kate kate is offline
Senior Member
 
Join Date: Feb 2001
Posts: 356
Default A simple forgotten question

Hi,
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.
Reply With Quote
  #2  
Old 12-02-2006, 11:35 PM
digitiger digitiger is offline
Senior Member
 
Join Date: Jan 2001
Posts: 716
Default 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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:58 PM.


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