Page 1 of 1

How to get directories included in Directory()

Posted: Fri May 23, 2008 7:24 am
by xProgrammer
Hi all

xHarbour documentation implies that you add "D" as the second parameter to the call to the Directory() function. This doesn't work. I tried "d" but that didn't work either. Anyone know how?

Thanks
xProgrammer

Posted: Fri May 23, 2008 7:29 am
by xProgrammer
Please disregard the above - I used *.* when I should have used *.

I should know better at my age!

Regards
xProgrammer

Re: How to get directories included in Directory()

Posted: Thu Apr 29, 2010 10:03 am
by yunbg1
aDir := Directory("/home/", "D",, .t.)

for i := 1 to len(aDir)
if aDir[i, 5] == "D"
? "Directory"
else
? file
endii
next