Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function ADIR()
Message
De
10/12/2003 14:42:55
 
 
À
10/12/2003 13:21:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00857766
Message ID:
00857824
Vues:
25
>Hello people,
>I have had a problem with Adir(). I am trying create a array with all files JPG in one diretory. This directory have 15383 images. Whem I create this array, fox give me this message: "Invalid Subscript reference".
>What I can do to read all files in this directory?
>
>Thanks!
>
>Rômulo

You can use the SYS(2000) function and a loop to put all of your filenames in a cursor or in an array, as long as you don't exceed 65000 total array elements. A cursor wouldn't have any practical limit. The ADIR() function fails because it returns a 5 elements for each file, so you can have a maximum of 13000 files (13000*5=65000).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform