所有关闭数据都不会全部关闭...... [英] Close data all won't close all...

查看:70
本文介绍了所有关闭数据都不会全部关闭......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我已经在这里发布了一段时间。

Hi all. Its been a while since I've posted here.

我正在尝试在我的程序中添加一个功能,每次用户退出程序时,dbf文件都会使用rar命令。

I'm trying to add a feature in my program in which every time a user exits the program, the dbf files get archived using a rar command.

我发出了我能想象的所有关闭命令,然后使用!/ 0运行一个批处理文件,该文件使用rar来存档dbfs。

I issue all the close commands I can imagine, and then use !/0 to run a batch file which uses rar to archive the dbfs.

出于某种原因,我总是从rar命令中得到一个错误 - 正在使用2个dbf文件。

For some reason, I always get an error from the rar command - 2 of the dbf filles are in use.

我注意到如果我"X"我的程序中有一个窗口 - 它是一个路线图屏幕 - 文件不再打开了。但是那个窗口不会打开任何文件 - 它只是一个路线图菜单。另外,我发布了"全部发布窗口"。使用"clear
data all"和其他清算命令。

I've noticed that if I "X" a window I have in my program - its a roadmap screen - the files aren't open anymore. But that window doesn't open any files - its just a roadmap menu. Also, I issue "release window all" with the "clear data all" and other clearing commands.

我很困惑 - 为什么2个文件在这之后仍然打开?

I'm baffled - why are 2 files still open after all this?

谢谢大家!

推荐答案

确定没有其他数据会话打开?关闭数据仅适用于当前会话。我不推荐它,因为清理数据会话是表单发布的工作,并且自动发生在私人会话中。

Sure there is no additional data session open? Close data all only works for the current session. I wouldn't recommend it, as cleaning up data sessions is job of the form release and happens automatic for private sessions.

剩下的是主数据会话1 vfp的开头。

What remains is the main data session 1 vfp starts with.

我会创建一个批处理文件,以pause命令开始暂停1-2秒,然后执行RAR调用,以RUN / N启动并退出。

I would create a batch file starting with a pause command to pause for 1-2 seconds, then do thje RAR call, start that with RUN/N and quit.

再见,奥拉夫。


这篇关于所有关闭数据都不会全部关闭......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆