Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

_Connection.Open (gb.db)

Sub Open ( )

Opens a connection to the specified database.

The connection properties should be set prior to calling this.

Examples

DIM $hConn As NEW Connection

WITH $hConn
   .Type = "postgresql"
   .Host = "localhost"
   .Login = "username"
   .Password = "passwd"
   .Name = "testdb"
END WITH

TRY $hConn.Open
IF Error THEN PRINT "Cannot Open Database. Error = "; Error.Text