Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

DIRLIST order

FOR EACH VDIR IN DIRLIST('C:\')

what's the directories sort priority (name, date ...)? and can I choose it?

thanks!

Tags (1)
5 Replies

Re: DIRLIST order

I am not done this and may be not followed you. Will you check something like this?

For Each vDir In DIRLIST('C:\')

Sample:

Load * From ....;

Concatenate

Load * from .....;

Final:

Load * Resident Sample Order By name, date;

Life is so rich, and we need to respect to the life !!!
passionate
Valued Contributor

Re: DIRLIST order

Hi Luigi,

The load priority while loading is by name in filelist.

Regards,

Pankaj

Not applicable

Re: DIRLIST order

Hi Anil,

DIRLIST provides an array of string, one for each directory in "c:\" in this example

I was wondering how these string are sorted and if I can change it

Not applicable

Re: DIRLIST order

Hi Pankaj,

are you saying that both filelist and dirlist sort the array by name?

is there any way I can change this priority by date for example?

thanks

Re: DIRLIST order

May be explain/show how your variable looks like?

Life is so rich, and we need to respect to the life !!!