Hi there! I am completely newbie and needs help from experts like you. I'm using delphi7 under Win2k Adv. Server and initially coded my application using MS ACCESS database as backend
I Have 2 simple qestions:
1. I pasted an application event component in my datamodule to make it visible to all modules. I did this to trap any database-related errors that may occur in any of the modules. How can I avoid displaying the default Delphi exceptions and just display my own error message. I've tried but what happened is that the Delphi exceptions error appears first and when I close it, my customized error message appears next.
2. How can I avoid displaying the same child window in my MDI application when I clicked a button that creates it? I have a code something like this in my form's button:
application.createform(TfrmX,frmX); //frmX is a child window
frmX.show;
How can I test if frmX is already loaded and active so I can avoid creating it again?
Thanks for shedding a little light....
ERA
era@nittsu.com.ph
era@digitelone.com
I Have 2 simple qestions:
1. I pasted an application event component in my datamodule to make it visible to all modules. I did this to trap any database-related errors that may occur in any of the modules. How can I avoid displaying the default Delphi exceptions and just display my own error message. I've tried but what happened is that the Delphi exceptions error appears first and when I close it, my customized error message appears next.
2. How can I avoid displaying the same child window in my MDI application when I clicked a button that creates it? I have a code something like this in my form's button:
application.createform(TfrmX,frmX); //frmX is a child window
frmX.show;
How can I test if frmX is already loaded and active so I can avoid creating it again?
Thanks for shedding a little light....
ERA
era@nittsu.com.ph
era@digitelone.com