Delphi:TADOWrap

There is no dearth of components, including the one native to the Delphi VCL, that offer simplified access to the capabilities of ADO. However, they are typically quite difficult to use because of the range of ADO functionality which they try to encapsulate. We offer a slimmed down alternative which is very easy to understand and to modify. TADOWrap is a TObject, not TComponent descendant so it is for the developer to create and manage instances of it at runtime as and when required. TADOWrap has six properties

It should be noted that the methods which take a string or integer Index parameter raise an EADOWrap exception if an invalid/nonexistent index is supplied. TADOWrap has a number of methods for navigating through recordsets returned by the last SQL query which are for the most part self-explanatory. The methods that are less evident are listed below

Usage: Create an instance of TADOWrap and connect it to an ADO database. With this done call the RunCommand and RunQuery methods to manipulate the database. Use the MoveFirst/MoveLast, Scroll and BOF/EOF functions to work through recordsets returned by these methods.

Run the sample application, ADOTest in the download, below, and then look at the source code.

Download
Jump To...

Colophon