ODBC

ODBC

Postby Jack » Thu Feb 14, 2019 7:25 am

Hi,
I use ODBC to communicate with a filemaker database .

When i sent a wrong SQL instruction (oDbc:Query() , fivewin give an error dialog box .
If i hit enter, the program continue .

In place of the dialog box, i 'd like to write the error in a txt file and bypass the dialog box .

How to ?


oODBCK := TOdbc():New("DBNAME", "user", "password")
oDbfa:=oOdbc:Query("SELECT Numobj,dtedeb,numnat,numdesc FROM Objet WHERE Modif_Dte>=date()-1 ")

Thanks
Philippe
Jack
 
Posts: 280
Joined: Wed Jul 11, 2007 11:06 am

Re: ODBC

Postby Baxajaun » Thu Feb 14, 2019 8:20 am

Good morning Philippe !!!

Perhaps with TRY / CATCH / END

Best regards
User avatar
Baxajaun
 
Posts: 961
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests