MIAMEX 21: Find next matching file

Updated June 2011

xcall MIAMEX, MX_FINDNEXT, status, filename, size, attrib {,cdate, ctime, udate, utime {, adate, atime}}

MX_FINDNEXT must be preceded by a call to MX_FIND_FIRST. It returns the next file or subdirectory in the path specified in the original call to MX_FIND_FIRST. On exiting, the floating-point status variable, status, contains zero, in which case the remaining parameters are set as for the return from MX_FIND_FIRST, or non-zero to indicate an error (most likely no more files or sub-directories in the path).

Note that the parameter list for this call is identical to that for the MX_FIND_FIRST call, except that the PATH parameter is omitted. The starting path is set by the MX_FIND_FIRST call and maintained internally after that.

See MX_FINDEND for additional information and a program example, and the History note in MX_FINDFIRST.