OPENDIR number of files problem

Kenneth Brody kenbrody at bestweb.net
Wed Oct 8 13:02:25 PDT 2008


Quoting Bruce Easton (Wed, 8 Oct 2008 15:33:18 -0400):

> Maybe someone has seen this before.  I'm running fp 5.0.13 on a SCO system
> and for a directory that has 2180 files in it matching ".csv", OPENDIR
> returns 180, dropping the leading digit.  If there are 2181 files in the
> directory, it will return 181 (returning this value into a dummy field
> declared as (5,.0).  (I found out these values using the debugger.) There is
> no automatic processing seen by this process.
[...]

Why is it that things like this lay hidden for years, only to be found by
several people all at the same time?

OPENDIR() returns a (3,.0) value, which is basically the value mod 1000.
If you have more than 999 matching filenames, the value will be wrong.
This will be fixed in the next update.

In the meantime, you can use @DIRLIST["0"] to get the correct count.

-- 
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list