Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening all dbfs in a directory
Message
De
19/10/2013 16:24:47
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
16/10/2013 13:27:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01585571
Message ID:
01585860
Vues:
82
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform