ChangeCursor Problem

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
saidus
Posts: 78
Joined: Wed 26 Oct 2005 09:54
Location: Algeria

ChangeCursor Problem

Post by saidus » Sat 24 Mar 2007 13:59

Hello !!
in Version 4.40.0.23 there is a probleme with
"DBAccess.ChangeCursor = false"
and i have a probleme on TMyQuery::BeforePost event ..
here is the code

Code: Select all

TMyQuery::BeforePost(......)           
{         String cc = fr_Client->DBEdit1->Text;
           String rs = fr_Client->DBEdit2->Text;
           HWND h    = Application->Handle;
            if(CompareStr(cc,"") == 0 || CompareStr(rs,"") == 0 )
           {
               MessageBox(h,"Veuillez saisir le Code Client et la Raison       
                                      Sociale \n"
                                      "Avant d'Enregistre les modifications... Merci",
                                      "gFac",MB_OK+MB_ICONWARNING);
               Abort();
            }   
 }
ps : i use cbuilder 6
One more Question please :
where are you from (crlab)??[/code]

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 27 Mar 2007 11:54

I have send you a simple demo that demonstrates working with the ChangeCursor variable by email.

I cannot reproduce problem with the OnBeforePost event. Please describe it more detailed or send me a complete small sample to evgeniyD*crlab*com to demonstrate the problem, including script to create and fill table.

Post Reply