
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_filespec()
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
C_FILESPEC()
DESCRIPTION
C_FILESPEC() determines if the specified file matches the given
file specification. The file specification can include wild card
characters (* ?).
SYNTAX
C_FILESPEC(filename, filespec)
PARAMETERS
filename (C) is the name of the file to check for a match. The
filename argument can be any valid 12 character file name including
the extension. A drive or path name should not be included.
filespec (C) is the file specification used to determine a match
for filename. It can contain any valid file name character
including wild card characters (* ?).
RETURNS
C_FILESPEC() returns true (.T.) if the specified filename matches
the given filespec, or false (.F.) if it does not.
EXAMPLES
c_filespec("test.txt", "*.*") --> .T.
c_filespec("test.txt", "*.txt") --> .T.
c_filespec("test.txt", "test.*") --> .T.
c_filespec("test.txt", "*.???") --> .T.
c_filespec("test.txt", "*") --> .T.
c_filespec("test.txt", "*.fil") --> .F.
See Also: C_FILENAME() C_PATHNAME()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson