Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 06-12-2012, 10:47 AM
Marsheng Marsheng is offline
Senior Member
 
Join Date: Nov 2008
Posts: 205
Default ShowMessage in DataModule

From what I have read, I need to open the Datamodule before the Main form to get all the DB connections done first. I need to know if my Database is connected, however the Datamodule does not implement the ShowMessage function. I assume because no form has been created as yet.

Any suggestions on how to get a message displayed ?

Delphi 6.
  #2  
Old 06-12-2012, 12:29 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 6,707
Default

Add Dialogs to the uses list of the datamodule
  #3  
Old 06-12-2012, 09:40 PM
Marsheng Marsheng is offline
Senior Member
 
Join Date: Nov 2008
Posts: 205
Default

Thanks you are a star.

Interesting I have to add Dialogs to the unit and not Messages !!!!.

Cheers Wallace
  #4  
Old 06-13-2012, 07:24 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 6,707
Default

Messages is a unit with all the resourcestrings.
If you do CTRL+Click on the unit in the uses you jump to the unit. See what is in there.
And I find dialogs the logic place, since it's a dialog with a message which is shown to you. But that's a different discussion ;-)
Closed Thread

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 08:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.