OpenDatabase()
Syntax
Result = OpenDatabase(#Database, ODBCDatabaseName$, User$, Password$)Description
Open the specified ODBC database and set it as the current one. If #PB_Any is used as '#Database' parameter, the new database identifier will be returned as 'Result'. All further operations will be done on this new opened database. To change the current database, simply use the UseDatabase() command. 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 are 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