20164.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 30 行

HTML
30
字号
<html>  <head>    <title>如何能检查档案是否存在呢?</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>如何能检查档案是否存在呢?</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:alicechew@iname.com">小妹妹</a> on October 14, 1999 at 23:24:49:<p>我希望能写一个程式让用者在输入data file 的档案名称后(如 *.mdb 档案),叫vb运用command开启该档案!<p>但因用者可能会输入错误,找不到该档案,而出现错误!<br>我可否用一些command先检查该档案是否存在于directory内,才叫vb开启该档案呢?程式码应如何写出呢?<p>谢谢你们的帮忙!<p><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 20164--><!--top: 20173--><li><a href="20173.html">Re: 如何能检查档案是否存在呢?</a> <b>SuBird</b> <i>08:38:38 10/15/99</i>(<!--responses: 20173-->0)<ul><!--insert: 20173--></ul><!--end: 20173--><!--top: 20165--><li><a href="20165.html">用Dir。</a> <b>ComBilLi</b> <i>23:32:51 10/14/99</i>(<!--responses: 20165-->0)<ul><!--insert: 20165--></ul><!--end: 20165--></ul><!--end: 20164--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?