大家好,我有一个应用程序,如果主日志文件不可用(即网络故障),它将在辅助日志文件中生成一个条目。一旦打开日志文件,我将其保持打开状态直到应用程序结束但是,如果
主文件没有问题,可能无法打开辅助文件。
当用户按下“完成”按钮时,我使用“To_File / Execute Close”对象来确保两个文件都已正确关闭。
没问题,一切都运行良好,即使有鼻子文件。最近我决定允许操作员更改辅助文件的目录,所以我为To_Fileobject提供了文件名控制输入引脚。
不幸的是,在这种情况下,Vee的行为有点不同 - 如果文件不存在,Vee创建它然后,Iassume,关闭它。
出于多种原因,我不希望生成空数据文件。
实际上,我不希望生成任何sortbeing的空文件。
这是一个合法且理想的Vee“功能”吗?我知道在DOS时代关闭文件是一件大事。
在Windows 2000机器上留下Vee应用程序时,我真的需要“执行关闭”吗?Barriewhoi
以上来自于谷歌翻译
以下为原文
Hi folks,
I have an applica
tion that will make an entry in a secondary log file
only if the primary log file is not available (i.e. network failure).
Once a log file has been opened, I leave it open until the application
ends but, if the primary file has no problems, the secondary file may
never be opened. When the user presses the "Done" button, I use a
"To_File/Execute Close" object to make sure both files have been closed
correctly. No problem, everything works well even if there is no
secondary file.
Recently I decided to allow the operator to change the secondary file's
directory so I provided a file name control input pin to the To_File
object. Unfortunately, Vee acts a little differently under this
condition - if the file doesn't exist, Vee creates it and then, I
assume, closes it. For a number of reasons, I don't want empty data
files being generated. In fact, I don't want empty files of any sort
being generated. Is this a legitimate and desirable Vee "feature"?
I know closing a file was a big deal back in the DOS days. Do I really
need to "execute close" when leaving a Vee application on a Windows 2000
machine?
Barrie
whoi
---
You are currently subscribed to vrf as:
r***@soco.agilent.com
To unsubscribe send a blank email to "
leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "
vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "
owner-vrf@it.lists.it.agilent.com".
0