首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

datastore importfile 编译后为什么不执行了?解决方法

2012-02-06 
datastore importfile 编译后为什么不执行了?datastore 对象的 importfile 方法导入dbf文件,编译成exe后就

datastore importfile 编译后为什么不执行了?
datastore 对象的 importfile 方法导入dbf文件,编译成exe后就不执行了为什么?

代码如下:

ds_imp = Create DataStore
ds_imp.DataObject = 'd_imp'
ds_imp.SetTransObject(SQLCA)
ds_imp.Retrieve()
ll_improw = -1
ll_improw = ds_imp.importfile(DBase3!,ls_path) 

此处为什么编译后的exe文件就不执行了?在调试状态下都是正常的,而且能导入,没有问题!怎么编译后就不行了呢?请高手指点!

MessageBox('提示',"ds_imp导入结果:" + String(ll_improw))



[解决办法]
你的数据窗口对象应该无效的,是不是采用的machine code方式?
你的程序有几个pbl?先试一下都编译成pbd看看,一般动态引用的对象如果编译成machine code方式需要加上资源文件说明~~

热点排行