Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening all dbfs in a directory
Message
From
19/10/2013 16:24:47
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
16/10/2013 13:27:17
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01585571
Message ID:
01585860
Views:
83
>I like how you used SYS(2000) instead of ADIR() -- it avoids problem if there are enough DBFs to cause array boundary overflow.
>
>One about possible action one might do is to make the program recursive so that you "walk" the directory hierarchy Of course, there is the potential for a problem if you run into a directory "reference loop"... (yup, I've seen it happen).

Hi Naoto

Sorry for taking so long to reply. I'm not a big fan of arrays since VFP could have had far more array functions but doesn't. Good idea. I think I'd rather have a routine to recurse and build the list of folders and then call the GetBadDbfs routine per folder. That way each one is separate and encapsulated.
Previous
Reply
Map
View

Click here to load this message in the networking platform