Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there an alternative to ADIR()?
Message
De
30/04/2004 07:52:10
 
 
À
30/04/2004 07:40:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00899669
Message ID:
00899671
Vues:
20
Hi Richard,

Too much files.
ADIR() can hold only 65000 elements. Since it's 5-dimensional, that means
65000 / 5 = 13000 files.
In VFP 9 it wil be able to hold more elements.

In te meantime, I suggest that you use the SystemFileObject Script :

LOCAL oFSO as "Scripting.FileSystemObject"
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
ofso1=oFSO.GetFolder(lcPad)
FOR EACH oItem IN oFSO1.Files
insert into cursor crs_Files (c_File) values (oItem.Name)
endfor

Refer to this link if Scripting is not present or too old :
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en

Greetzzz

Chris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform