Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 714 Bytes

dir-function-must-first-be-called-with-a-pathname-argument.md

File metadata and controls

19 lines (14 loc) · 714 Bytes
description title ms.date f1_keywords ms.assetid
Learn more about: 'Dir' function must first be called with a 'PathName' argument
'Dir' function must first be called with a 'PathName' argument
07/20/2015
vbrDIR_IllegalCall
7b5d149f-be91-4ac3-8262-86a360894e7d

'Dir' function must first be called with a 'PathName' argument

An initial call to the Dir function does not include the PathName argument. The first call to Dir must include a PathName, but subsequent calls to Dir do not need to include parameters to retrieve the next item.

To correct this error

  • Supply a PathName argument in the function call.

See also

  • xref:Microsoft.VisualBasic.FileSystem.Dir%2A