Hello,
I have a routine that processes tables with indexes. I did this by using
ADIR(thearray,'*.*','AHRSD')
and then walking the array, searching for either a CDX file to process or a
subdirectory to recurse into.
Unfortunately it trips up on larger directories with a memory error trying
to execute the ADIR().
I decided to take a listing of subdirectories and CDX files to make the
resulting array much smaller. How can I do this though? At first I tried
ADIR(thearray,'*.CDX','AHRSD')
but that will only include directory names that match the file skeleton (ie
end in '.CDX'; which they don't.) Next I tried creating two arrays, one for
CDX files with ADIR(filearray,'*.CDX','AHRS) and one for subdirectories with
ADIR(dirarray,'*.*','D') but the latter matches all the files and
directories which is prone to memory errors.
Is it possible to get an array of all CDX files and all directories without
creating an array of everything and filtering it in Fox code?
This is FPW2.6a.
--
TIA
Andrew Howell