-1
我正在使用Visual Studio 2012 VB.net。 每次我嘗試使用它回來Error 1 'File' is not declared. It may be inaccessible due to its protection level.
我是否缺少API?File.Exists(curFile)Error
我正在使用Visual Studio 2012 VB.net。 每次我嘗試使用它回來Error 1 'File' is not declared. It may be inaccessible due to its protection level.
我是否缺少API?File.Exists(curFile)Error
您需要輸入System.IO
或將代碼更改爲If System.IO.File.Exists(curfile) = True Then
。
你沒有使用VBA,但是vb.net你需要'Imports System.IO'在你的代碼模塊中 –
我只能看到System.IO.Compression,System.IO.Compression.FileSystem和System.IO.Log 。 –
我很抱歉,我明白了,我不知道它就像Java,我只是把它放在代碼中。我認爲它會出現在框架菜單中。謝謝。 –