一个系统需要读取并执行大量的.sql文件,但是发布程序时不能将这些sql文件放在程序文件夹里,能不能像图片文件一样列在pbr文件里让pb编译进去呢?或者其他什么方式比较好,请大家指教,谢谢!(分不多,全给了)
------解决方案--------------------
11.5的chm里是这样描述的
Table 36-3: PowerBuilder objects and resources These objects Can use these kinds of resources
Window objects and user:
objects Icons (ICO files)
Pictures (BMP, GIF, JPEG, PNG, RLE, and WMF files)
Pointers (CUR files)
DataWindow objects:
Pictures (BMP, GIF, JPEG, PNG, RLE, and WMF files)
Menu objects (when in an MDI application):
Pictures (BMP, GIF, JPEG, PNG, RLE, and WMF files)
------解决方案--------------------
$PBExportHeader$q_derek.srq
select * from contact
把这个保存成q_derek.srq文件,然后导入到PBL中
然后调用以下代码试试
String ls_dwsyn, ls_errors
ls_dwsyn = LibraryExport("dwTemp.pbl", &
"q_derek", ExportQuery!)