RTC Forums
November 24, 2024, 06:47:51 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: tadoquery  (Read 4320 times)
ravelund
Newbie
*
Posts: 1


« on: July 14, 2012, 08:37:38 PM »

Du someone have a submit example for tadoquery. How to prepare update and insert statements for ado?

Ole M
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: July 14, 2012, 09:07:28 PM »

Please take a look at the FishFactServer 2 Demo, which contains a procedure "PrepareQueryAction",implementing everything required to apply changes to a TQuery. I have never used TADOQuery, but if you are familiar with TADOQuery, you should be able to modify that prodecure to work with TADOQuery instead of TQuery. Just copy that whole procedure into your own unit, replace TQuery with TADOQuery and start making any necessary changes - until it compiles.

Naturally, because this is a proceudre which is called for every row change operation, you should look at the complete FishFactServer 2 example to see how that procedure is used.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 16 queries.