Title: tadoquery Post by: ravelund 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 Title: Re: tadoquery Post by: D.Tkalcec (RTC) 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 |