同意10楼,我也是这么用的!
改成这样可以吗?在一个总文件夹内,包含下一段,也包含‘文印费管理系统文件夹’,这个总文件夹放在哪里都可以的。
clear all
use 文印费管理系统\jg
do form 文印费管理系统\文印费计算器
read events
release all
程序代码:
clear all
*cpath=sys(5)+sys(2003)
*-- modify by TonyDeng
IF application.StartMode != 0
* 程序經編譯後從.EXE模式啟動時使用的路徑,為.EXE文件所在目錄
cPath = application.DefaultFilePath
ELSE
* 在開發IDE環境下寫程序時的路徑,必須自己設定,否則使用VFP9.EXE的目錄
cPath = "c:\My Documents\Visual FoxPro Projects\文印费管理系统"
ENDIF
*--
set default to (cpath)
use jg.dbf
do form 文印费计算器
read events
release all
