Talk:Connecting to a Database using the dbExpress Driver Framework
In the line:
4. Open the database connection by calling Open on the Data.DBXCommon.TDBXConnection instance.
"Open" is linked to the TDBXConnectionFactory.Open method. TDBXConnection.Open has protected visibility. The program code on the line with the statement
connection.open;
will not compile as it tries to access a protected method of TDBXConnection. How is one supposed to call TDBXConnection.Open?
Response
You are correct. Preliminary research indicates that the correct way to open a connection is by using (in this example):
ConnectionFactory.GetConnection;
Our Database writer/programmer will verify and make this correction.
Many thanks for your contribution to the docwiki!!
KrisHouser 10:10, 16 April 2012 (PDT) Lead Writer, RAD Studio
RAD-10745