Hi ehwanger,
can you help me please?
The Message'' Cannot make a visible window modal''
Can I translate the message in an other language using the Translate function. or is there another way?
I ask you because you had help me in the past.
http://img4.imagetitan.com/img.php?image=17_modal.png
Thank you in advance
Vassilis
ehwagner wrote:// global event for all exceptions related database
function OnSQLException(Sender: TObject; Msg: string; SQL: string): boolean;
begin
// exception from button frmStoixeia.Button4
if Sender = frmStoixeia.Button4 then
begin
if Pos('FOREIGN KEY constraint failed', Msg)=1 then
begin
result := True; // to prevent system message
MessageBox('Your Message Here.', 'Error', MB_OK+MB_ICONWARNING);
end;
end;
end;