Colleagues,
In any program, one needs to check if a such-n-such file is present in a such-n-such directory.
The known way of checking up a file's presence is FileExists() function/method.
I tried to use it as
... in the frmMain.cmdRun.Click() event and, once I've it printed this above code in the code editor window, it gave me "grief" with the following error message:
"'FileSystem' is ambiguous, imported from the namespaces or types 'Microsoft.VisualBasic.FileIO, Microsoft.VisualBasic".
I do have both
in the VB module, so... I'm confused!
What am I doing wrong there?
TIA!
Regards,
Ilya
In any program, one needs to check if a such-n-such file is present in a such-n-such directory.
The known way of checking up a file's presence is FileExists() function/method.
I tried to use it as
Code:
FileSystem.FileExists(lcSrcDir & pcFilNamXML)
... in the frmMain.cmdRun.Click() event and, once I've it printed this above code in the code editor window, it gave me "grief" with the following error message:
"'FileSystem' is ambiguous, imported from the namespaces or types 'Microsoft.VisualBasic.FileIO, Microsoft.VisualBasic".
I do have both
Code:
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.FileIO
in the VB module, so... I'm confused!
What am I doing wrong there?
TIA!
Regards,
Ilya