[Gambas-user] the database connection never errors
johnf
jfabiani at ...1109...
Wed Dec 28 10:32:47 CET 2005
Hi,
Dim myconn as Connection
WITH myconn
.Type = TypeDataBase.Text
' "postgresql"
.Host = host.Text
.Login = username.Text
.Password = password.Text
.Name = DataBase.Text
END WITH
TRY myconn.Open()
IF ERROR THEN PRINT "Database cannot be opened. Error =:"; Error.Text
The TRY opens even if I pass bad infomation in the text fields. It never
errors. Am I doing something wrong? I notice that the database demo also
never errors. Suse 10.0 Gambas 1.9.22
John
More information about the User
mailing list