DIR_List

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > DIR: functions working on directories >

DIR_List

 

Description

 

Return a linked list pointer (see LL module) containing a file list sequence based on mask, file attributes and function options.

 

Syntax

 

ptrLinkedList = DIR_List(Path, Mask, [Attribute, [Options]])

 

Returns

 

Number: pointer to a linked list.

 

Parameters

 

Name

Type

Optional

Meaning

Path

String

No

Path to search into. Examples:

"C:\Temp\"

"C:\"

 

Mask

String

No

Specifies a filename or additional sub path which can include a drive name and DOS compatible wildcard characters (* and ?). Examples:

"*.*"

"*.TXT"

 

Attribute

Numeric

Yes

See File Equates for possible attributes. Examples:

%FILE_NORMAL Or %FILE_ADDPATH

%FILE_SYSTEM Or %FILE_HIDDEN Or %FILE_ADDPATH

 

Options

Numeric

Yes

Not used. Possible future usage.

 

Remarks

 

Restrictions

 

See also

 

File Module,

 

Examples