Gerrit Broekhuis
Programmer
Hi,
I'm working on an older application from someone that uses a DBC (for storing remote views) with a MySQL database.
In the DBC the connection is hard coded (servername(or IP), username, databasename, password.
I want to change as little as possible in this application, as it's working fine. But I need to be able to use variables instead of the fixed connection parameters, as the servername, username, databasename and password could be different.
I can read most connection parameters with DBGETPROP (for example: DBGETPROP("module1", "CONNECTION", "database").
When trying to change anything with DBSETPROP I only get errors, like: ERROR 111 "Cannot update the cursor MODULE1, since it is read-only." Module 1 is the name of the DBC.
How should I make the DBC connection using my variables? Right now the original fixed parameters are still stored in the DBC connection. Can I simply overwrite these? How?
Regards, Gerrit
I'm working on an older application from someone that uses a DBC (for storing remote views) with a MySQL database.
In the DBC the connection is hard coded (servername(or IP), username, databasename, password.
I want to change as little as possible in this application, as it's working fine. But I need to be able to use variables instead of the fixed connection parameters, as the servername, username, databasename and password could be different.
I can read most connection parameters with DBGETPROP (for example: DBGETPROP("module1", "CONNECTION", "database").
When trying to change anything with DBSETPROP I only get errors, like: ERROR 111 "Cannot update the cursor MODULE1, since it is read-only." Module 1 is the name of the DBC.
How should I make the DBC connection using my variables? Right now the original fixed parameters are still stored in the DBC connection. Can I simply overwrite these? How?
Regards, Gerrit