[Gambas-user] Gambas-user Digest, Vol 37, Issue 29
Swee Kwang Tan
sktan007 at ...43...
Tue Jun 23 12:25:27 CEST 2009
Dear Sir,
Thank you for your reply, after execute the line
"#rpm -ivh --nodeps gambas2-gb-db-postgresql-2.13.1-1.fc11.i586"
fedora 11 said "no such file or directory".
The following is the simplify program
PRIVATE $res AS Result
PRIVATE $Con AS NEW Connection
PRIVATE SUB OpenDataBase()
$Con.Close()
$Con.Type = "postgresql"
$Con.Host = "localhost"
$Con.Login = "fate"
$Con.Port = "5432"
$Con.Name = "mydb"
$Con.Password = "zA3)8p(#"
$Con.Open() ' Open the connection
$res = $Con..exec("select * from myTable;")
END
This program is just a input data form, after click run button, there is no
error message, and no input form shown.
if the last 2 line
$con.open()
$res = $con.exec("select * from myTable;")
are not execute, then you will have two error message, like following
(InputDef:3256): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
(InputDef:3256): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
but the input form will be show out.
Thank you
_______________________________________
辣茩妏蚚閉湮⺍講捇誥蚘眊
http://cn.mail.yahoo.com
More information about the User
mailing list