<div><div dir="auto">Thanks Mark</div></div><div dir="auto"><br></div><div dir="auto">From the online manual opendir can take 1,2 or no parameters. Hard to know what the value in field 1 is in the supplied example.</div><div dir="auto"><br></div><div dir="auto">Does it open the current directory?</div><div dir="auto"><br></div><div dir="auto">Can I use it to traverse directories in the current directory?</div><div dir="auto"><br></div><div dir="auto">Ken</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div>On Thu, 31 May 2018 at 1:06 pm, Fairlight via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It works with any directory, AFAIK.<br>
<br>
4.8 NEXTDIR Returns system directory info. Used with OPENDIR<br>
<br>
Syntax:<br>
<br>
XX = NextDir()<br>
<br>
Return Value - System directory information as follows:<br>
<br>
filename extension size date time fullname<br>
14 10 14 8 6 25<br>
<br>
Notes: A single space is returned between each portion of the string.<br>
Filenames, extensions, and fullname are left justified. Size<br>
is right justified w/commas. The date and time right justified.<br>
NextDir() can be executed more than once to build a list of<br>
files for sub-directory structures.<br>
<br>
Example:<br>
<br>
@wlf1 If: 1 gt "" ' check field 1 gt ""<br>
Then: n = OPENDIR(1) ' n = the number of dir entries<br>
ad2c If: c lt n ' c (counter) LT number of dir entries<br>
Then: c(4,.0)=c+"1" ' add "1" to the counter<br>
If: not ad2c ' no more directory entries<br>
Then: n = CLOSEDIR();end ' n = "0" if properly closed<br>
Then: fn(25) = NEXTDIR() ' return directories or filename & ext.<br>
Then: show "@The directory or filename.ext is: "<fn;goto ad2c<br>
<br>
<br>
Don't even start me on the artificially low length limitations.<br>
<br>
m-><br>
<br>
<br>
On Thu, May 31, 2018 at 12:29:42PM +1000, Ken Cole via Filepro-list thus spoke:<br>
> Does opendir only work on the filePro directory?<br>
> <br>
> If not, how do you get it to return a list if all directories in the<br>
> current directory?<br>
> <br>
> Thanks<br>
> <br>
> Ken<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20180531/258d9ca3/attachment.html" rel="noreferrer" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20180531/258d9ca3/attachment.html</a>><br>
> _______________________________________________<br>
> Filepro-list mailing list<br>
> <a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
> Subscribe/Unsubscribe/Subscription Changes<br>
> <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
> <br>
<br>
-- <br>
Audio panton, cogito singularis.<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</blockquote></div></div>