PB8、PB9中不能使用某些datastore

flyingti 2003-11-07 01:35:33
我的应用从PB7升级到PB8后,程序编译后执行,发现应用中很多使用datastore的地方都出现异常。调用datastore的代码如下:

datastore ds_test
integer li_retnum

ds_test = create datastore
ds_test.dataobject = 'ds_storein'
li_retnum = ds_test.settransobject(sqlca)

这个语法是没有任何问题的。可是无论上面这段代码放在window或其它对象的任何地方,检查返回值都是-1,当然对该datastore的后续数据检索或其他处理都出错。

经反复测试,发现应用中的大部分dataobject都不能通过上面的方式设置,只有极少数的dataobject是可以设置成功的。

我的应用在PB7下是完全正常的。PB8和PB9(都打过最新的补丁)都遇到上面的问题。数据库使用的是同一个数据库。

请问各位是否遇到过这种现象,如何解决?

谢谢各位指点!
...全文
135 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyingti 2003-11-10
  • 打赏
  • 举报
回复
请教:我要给各位加分。如何结帖给分?
flyingti 2003-11-10
  • 打赏
  • 举报
回复
终于找到了问题所在,是编译的问题。

以前我创建的一个整的exe文件,datastore不能使用。现在将所有的PBL分别编译成PBD或Dll,则执行exe文件一切正常。

谢谢各位!
jdsnhan 2003-11-08
  • 打赏
  • 举报
回复
8.0以上需要资源文件来说明。
liujiaqiang 2003-11-08
  • 打赏
  • 举报
回复
应该是 Bug ,请升级吧。。。。
flyingti 2003-11-08
  • 打赏
  • 举报
回复
datastore的dataobject直接preview是没有问题的,我的数据库是MS SQL2000。

补充一点,datastore的操作在PB的debug状态下一起正常,程序build成exe文件后执行,所有涉及datastore的操作就都不管用了。
彷徨的龙 2003-11-07
  • 打赏
  • 举报
回复
asa6和asa7,不兼容,不信你试试看,我从7升到8就没有办法用
鸡翅多 2003-11-07
  • 打赏
  • 举报
回复
遇到过同样情况,哈哈
估计是BUG,呵呵
我是重起解决的问题,看来你的情况比较严重
ropriest 2003-11-07
  • 打赏
  • 举报
回复
直接打开datastore的数据窗口,preview看看能不能检索出数据,否则要重新生成一下这些数据窗口。
运行效果 http://hi.csdn.net/attachment/201012/9/0_1291865794j998.gif ************************************************************************* PowerBuilder Foundation Class Library Version 9.0 R E L E A S E N O T E S Copyright ?1996-2003 Sybase, Inc. and its subsidiaries. All rights reserved. ************************************************************************* Last Updated: January 17, 2003 ************************************************************************* Please take a few minutes to review this file for fixes that were made in PowerBuilder 8.0.2 and 9.0. ************************************************************************* BUG FIXES IN PFC 9.0 ************************************************************************* CR300376 Object: pfc_n_cst_fileSrv, pfc_n_cst_fileSrvwin32 Method: OfGetDiskSpace Fix: Method returned a negative number when the calculated amount of free disk space exceeded 2 gigabytes. Added new method of_GetDiskSpaceEx that takes decimals as arguments instead of longs. of_GetDiskSpace will be obsolete in a future release. ************************************************************************* BUG FIXES IN PFC 8.0.2 ************************************************************************* PFC.PBR CR256529 Fix: The PFC.PBR file can be used to copy bitmaps and dynamically referenced DataWindow objects into the executable file for deployment. The following bitmap files that were removed from PFC have now been removed from the PFC.PBR file: details.bmp, helptop.bmp, largeico.bmp, listv.bmp, and smallico.bmp. ======================================================== PFC DataStore CR261992 Object: pfc_u_ds Method: pfc_print/pfc_printdlg Fix: Changed the return code test to check for 1 on success, otherwise there is an error or the user cancelled. Fix: Set the

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧