vb6 Open File For Append issue 找不到路径 [英] vb6 Open File For Append issue Path Not Found
本文介绍了vb6 Open File For Append issue 找不到路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Open App.Path & "\Folder\" & str(0) For Output
似乎没有找到路径但是如果在我之前直接这样做
Seems to get a path not found however if directly before that I do
MsgBox App.Path & "\Folder\" & str(0)
它提供了我想要的正确目录/文件名
It Provides the correct directory/filename that I want
如果我用引号中的直接路径替换该字符串,它可以正常工作,但是这对我的应用程序的其他用户来说不是很好:(有人知道为什么这不起作用吗?
and if I replace that string with the direct path in quotes it works fine however that won't be very good for other users of my app :( Anyone know why this doesn't work?
推荐答案
评论:您可以打开一个不存在的文件.
Comment: You can open a file that doesn't exist.
仅当您的文件夹存在时才为真.如果您的文件夹和文件都不存在,则会出现找不到路径"错误.
Only true if your folder exist. If both your folder and file does not exist, it will give a "path not found" error.
这篇关于vb6 Open File For Append issue 找不到路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文