Navigation:  thinBasic Modules > File >

DIR_List

Previous pageReturn to chapter overviewNext page

 

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