First time using OPENDIR
Boaz Bezborodko
boaz at mirrotek.com
Mon Nov 30 15:31:36 PST 2009
I want to use OPENDIR to read in a directory to see if there are any
files in it and then process them. Since this is my first time using
OPENDIR I wrote a simple program just to see what I would get and I'm
not clear about why I'm not getting what I expected.
Here is the code:
::x=OPENDIR():
::SHOW ("5","1") x:
::SHOW "@":
LOOP::xx=NEXTDIR():
::SHOW ("5","1") xx:
::SHOW "@":
::GOTO LOOP:
The test code simply opens the directory and lists everything in there.
But when I write it to the screen I see some of the FILEPRO files in
alphabetical order, but it skips many of them in between. I was pretty
sure that I would be able to key through the whole list, but that isn't
what's happening.
I'm running this on a Windows machine.
Can anyone tell me what I'm doing wrong?
Boaz
More information about the Filepro-list
mailing list