我用PB连接SQL2000,从PB中可以找到我要的数据资料,为什么运行时窗口不显示数据,谢谢大家!

来源:百度知道 编辑:UC知道 时间:2024/06/03 15:16:45
open(w_bigscreen)

//SQLCA.DBMS = "MSS Microsoft SQL Server 6.x"
//SQLCA.Database = "score"
//SQLCA.LogPass =SQL
//SQLCA.ServerName = "YY-7BD3DC10B890\AA"
//SQLCA.LogId = "DBA"
//SQLCA.AutoCommit = False
//SQLCA.DBParm="ConnectString='DSN=score' "
//connect using sqlca;
//if sqlca.sqlcode<>0 then
// halt;
//end if

打开窗体了吗?

我没看到open(w)啊

要想数据据窗口有数据,还要有settransobject(sqlca)和retrieve()两个

否则数据窗口控件与数据窗口对像是没有绑定的

还有我一般写成这样
if sqlca.sqlcode = 0 then open(w_main)
.....