Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading file names into tables
Message
De
29/11/2002 11:54:32
 
 
À
29/11/2002 11:48:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00728184
Message ID:
00728187
Vues:
26
David,

You can read the directory contents into an array using adir() then loop through each row appending the contents to your table.
LOCAL ARRAY laFilename[1]

lnTotalFiles = adir(laFilenames, "*.*")

for lnFile = 1 to lnTotalFiles
   insert into mytable (filename, size, attributes) ;
      values (laFilenames[1], laFilenames[2], laFilenames[5])
endfor
Or something similiar to the snippet above.

HTH
Neil
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform