OpenDatabase()
Syntax
Result = OpenDatabase(#Database, ODBCDatabaseName$, User$, Password$)Description
Open the specified ODBC database.
If #PB_Any is used as '#Database' parameter, the new database number will be returned as 'Result'. If the Result is 0, the database can't be found or the user/password is incorrect (the error text can be retreived with DatabaseError()). The Password$ can be a null string if no password is required.
To declare an ODBC database, read the ODBC help document of Windows. If another database was previously opened with the same #Database number, then the previous database is automatically closed.
Supported OS
Windows, Linux, MacOS X