EPUB | CHM | PDF

TMySQLDatabase.Methods.ConnectWithConnectionOptionsDialog

Top Previous Next

note Since v2.5.3

Connects TMySQLDatabase to MySQL database with "MySQL connection options" dialog.

Syntax:

function ConnectWithConnectionOptionsDialog : boolean;

Description:

Method returns True if connection was established successfully and False otherwise.

Call ConnectWithConnectionOptionsDialog to set the Connected property for the component to True. This method is similar to Connect method but it shows "MySQL connection options" dialog before connect to database. This allows to change connection parameters, for example to set username or password.

See also: Connected property, Connect method, OnLogin event