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 ='带入当时调试的值'都是有数据.
各位帮帮忙看看是什么问题,跟数据量有关系吗