Home > comp > gb.db > connection > open 
  [3.0]
 fr de es it nl pl pt pt_BR mk sq ca hu tr ar fa vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Connection.Open (gb.db)
SUB Open ( )

Opens the connection to the database.

The connection properties should be set prior to 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