Find the next file that matches the file previously found by FFirst().
XSharp.Core (in XSharp.Core.dll) Version: 2.4a
Syntax View Source
FUNCTION FNext() AS LOGIC
public static bool FNext()
TRUE if another file was found; otherwise, FALSE.
FNext() finds the next file that matches the original FFirst() or FFCount() search. In other words, FFirst() gets the first matching file and FNext() finds subsequent matching files. When FNext() returns FALSE, there are no more files left to match.
FFCount() returns the number of matches. FAttrib(), FDate(), FName(), FSize(), and FTime() return the attribute, date stamp, name, size, and time stamp of the current matching file, respectively.
This example uses FFirst() and FNext() to get all visible files matching "C:\DOCS\*.TXT":
1IF FFirst("c:\docs\*.txt", FC_NORMAL)
2 ? FName()
3 DO WHILE FNext()
4 ? FName()