Skip to main content

DataFolderDir

DataFolderDir (mode [, dfr ])​

The DataFolderDir function returns a string containing a listing of some or all of the objects contained in the current data folder or in the data folder referenced by dfr.

Parameters​

mode is a bitwise flag for each type of object. Use -1 for all types.

TypeBit NumberBit Value
All-1
Data Folders01
Waves12
Numeric Variables24
String Variables38

dfr is a data folder reference.

Details​

The returned string has the following format:

FOLDERS:name,name,...;<CR>

WAVES:name,name,...;<CR>

VARIABLES:name,name,...;<CR>

STRINGS:name,name,...;<CR>

Where <CR> represents the carriage return character.

note

This function is mostly useful during debugging, used in a Print command. For programmatically finding the contents of a data folder, it will be easier to use the functions CountObjects and GetIndexedObjName.

Examples​

Print DataFolderDir(8+4) // prints variables and strings
Print DataFolderDir(-1) // prints all objects

See Also​

Data Folders, Setting Bit Parameters