Click or drag to resize

ListBox.ListFiles Method

X#
Fill a list box with the names of all files that match the specified path or file name.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD ListFiles(
	sStartDir,
	oFixedText,
	FileTypes
) AS USUAL CLIPPER
Request Example View Source

Parameters

sStartDir (Optional)
Type: Usual
The path or file name of the starting directory.
oFixedText (Optional)
Type: Usual
Set automatically to the fixed text of the drive/directory of sStartDir.
FileTypes (Optional)
Type: Usual
One of the following constants indicating the attributes of the files to be displayed:

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
Windows API Constant Description
DDL_ARCHIVEIncludes archived files.
DDL_DIRECTORYIncludes subdirectories, enclosed in square brackets ([ ]).
DDL_DRIVESIncludes drives, listed in the form [-x-] where x is the drive letter.
DDL_EXCLUSIVEIncludes only files with the specified attributes.
Tip Tip
Read-write files are included by default even if DDL_READWRITE is not specified.
DDL_HIDDENIncludes hidden files.
DDL_READONLYIncludes read-only files.
DDL_READWRITEIncludes read-write files with no additional attributes specified.
DDL_SYSTEMIncludes system files.
DDL_POSTMSGSPosts messages to the application's message queue.
See Also