Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR() Foible
Message
De
25/09/2003 05:48:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/09/2003 05:26:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00831863
Message ID:
00832137
Vues:
30
This message has been marked as the solution to the initial question of the thread.
>Hi Christian,
>
>Is that a feature of VFP 7 or above? I only have 6 but I am trying to build up a case for us to upgrade to 8.
>
>Thanks,
>
>Ben

Ben,
Yes it was introduced in VFP7.
There are workarounds to your problem like using filer.dll, FileScriptingObject etc
However I think simple solution is still to use adir and process results. ie:
myPath = 'c:\myFiles\'
lcPattern = 'SUPP_????????.OUT'
lnFiles = ADir(arrFiles, mypath+lcPattern)
lnCols = Alen(arrFiles,2)
For ix = lnFiles to 1 step -1
 If !Like(lcPattern, arrFiles[ix,1])
    Adel(arrFiles, ix)
    lnFiles = lnFiles - 1
 endif
EndFor
Dimension arrFiles[lnFiles,lnCols]
Display Memory like arrFiles
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform