Tom Lisjac wrote:
Thanks heaps for the help. I Get this far and changing "Connected" to "True"Hi Eric, gives the error "Cannot load MySQL library "libmysqlclient.so. Please check your installation." The SQLdb Tab is there with 9 Icons including postgreSQL & Firebird! Eric March The next step is to add TSQLTransaction and TSQLQuery (a TDataset descendent) to your form and point them to TMySQL50Connection. TSQLQuery is used to pass DDL or DML sql statements to the database and return DML result sets. Put your sql statements in the SQL stringlist and use the ExecSQL method to execute DDL statements or the open method to return a DML result set. Adding a TDatasource to the form and pointing it at the TSQLQuery will allow you to use the data aware components to display the query results. Marco Cantu has posted a pdf extract from "Essential Delphi" that provides a good sql overview: http://www.marcocantu.com/edelphi/EssentialSQL_md6.pdf Hopefully this will get you started. There books and examples on the net about using TDatasets and the data aware components. -Tom _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus |
_______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
