DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Stephen has posted 20 posts at DZone. View Full User Profile

Using Dataset ADO In Delphi

11.12.2008
| 5180 views |
  • submit to reddit
        Usage example of TADODataset

function TfrmCreateEdit.CheckForAvailability(dbName: TADODataSet ; tblName: string ; Resource: string) : boolean;
begin
  with dbName do begin
    close;
    CommandText := 'SELECT * FROM Customers';
    memoDebug.Text := CommandText;

    try
      open;
    finally

    end;

  end;
end;