advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DIR$ Function Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 DIR$[(filespec$)]
 
 Usage Notes
   ■ If you omit filespec$ when you first call DIR$, Visual Basic generates
     the error message, "Illegal Function Call."
 
   ■ DIR$ returns the first file name that matches the filespec$ you specify.
     To retrieve additional file names that match the filespec$ pattern, call
     DIR$ again with no argument. When no file names match, DIR$ returns a
     null string.
 
  ■ You do not have to retrieve all the file names that match a given
     filespec$ before calling DIR$ again with a new filespec$.
 
   ■ DIR$ is not case sensitive ("C" is the same as "c").
 
   ■ Because file names are retrieved in no particular order, you may want
     to store file names in a dynamic array and sort the array.