Page 1 of 1

ChangeCursor Problem

Posted: Sat 24 Mar 2007 13:59
by saidus
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]

Posted: Tue 27 Mar 2007 11:54
by Antaeus
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.