Using opendir() with a filePro file name

Mike Schwartz (PC Support & Services, Appleton, WI) mschw at athenet.net
Wed Apr 5 19:20:30 PDT 2006


    I'm trying to use the opendir commands along with read to search
through all of my processing tables and post every lookup and a few
other important things into a separate database file on filepro
version 5.0.5.

     In the past I seem to recall that I've worked with a full path, like:

opendir("PRC_MASK",xx)

     where xx="/appl/filepro/InvoiceHDR"  (the full path name)

    In this case, I was tring to get the FPname options working instead of
using the full path.

    I used the opendir() command to fill an array, finam(100)(32,*), with
the name of all my filePro databases.  Then I used the closedir()
command.  Then, if I'm reading my filePro docs correctly, I should be
able to do something like:

opendir ("PRC_MASK",finam(lc))

where lc is a counter that begins at "3", so that I skip "." and "..".

There is a filePro name like InvoiceHead in finam(lc).  I've even tried
setting zd=finame(lc), then using:

opendir("PRC_MASK",zd)

     My sketchy filePro 4.8 docs seem to indicate that the opendir()
command will work with just a [FPname]. Or won't the opendir()
command with with a variable for an FPname?

Thanks!

-- 
Mike Schwartz
PC Support & Services
3650 N Suncrest Lane
Appleton, WI 54914



More information about the Filepro-list mailing list