datastore.Retrieve() 返回-1代码如下大家帮帮忙看下
创建的代码如下
datastore dw_8
dw_8 = create datastore
ls_dh = dh1
ls_cph = cph1
new_sql = "select xmh,ylh,hsjs,sui,sl,id from cost where dh ='" +ls_dh+"'"
new_syntax = SQLCA.SyntaxFromSQL(new_sql, 'Style(Type= grid)', error_syntaxfromSQL)
IF Len(error_syntaxfromSQL) > 0 THEN
messagebox("错误", error_syntaxfromSQL)
ELSE
dw_8.Create(new_syntax, error_create)
IF Len(error_create) > 0 THEN
messagebox("错误", error_create)
END IF
END IF
dw_8.SetTransObject(SQLCA)
i_count = dw_8.Retrieve()
程序刚开始执行的前面的数据都没有问题,到1800多条左右i_count开始返回值变成了-1
我在数据库用select xmh,ylh,hsjs,sui,sl,id from cost where dh ='带入当时调试的值'都是有数据.
各位帮帮忙看看是什么问题,跟数据量有关系吗
datastore dw_8
dw_8 = create datastore
ls_dh = dh1
ls_cph = cph1
new_sql = "select xmh,ylh,hsjs,sui,sl,id from cost where dh ='" +ls_dh+"'"
new_syntax = SQLCA.SyntaxFromSQL(new_sql, 'Style(Type= grid)', error_syntaxfromSQL)
IF Len(error_syntaxfromSQL) > 0 THEN
messagebox("错误", error_syntaxfromSQL)
ELSE
dw_8.Create(new_syntax, error_create)
IF Len(error_create) > 0 THEN
messagebox("错误", error_create)
END IF
END IF
dw_8.SetTransObject(SQLCA)
i_count = dw_8.Retrieve()
程序刚开始执行的前面的数据都没有问题,到1800多条左右i_count开始返回值变成了-1
我在数据库用select xmh,ylh,hsjs,sui,sl,id from cost where dh ='带入当时调试的值'都是有数据.
各位帮帮忙看看是什么问题,跟数据量有关系吗
...全文
相关推荐
powerbulilder pb datastore实现步骤完整源码.docx
完整介绍创建datastore,根据条件在datastore中查询数据、取值;将取出的值赋值到新窗体新增行的字段中。
PB的数据窗口操作
PB的数据窗口操作,数据窗口的函数详细介绍。对于了解数据窗口很有帮助。
google_app_engine_cheat_sheet_119_1
google_app_engine_cheat_sheet_119_1.pdf
修改窗口对象属性
修改窗口对象属性,这是在POWERBUILD 9.0中动态修改数据窗口对象的属性 代码.
利用PB11開發Web Service應用
利用PB11開發Web Service應用


DataWindow
