Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() Foible
Message
From
25/09/2003 05:48:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00831863
Message ID:
00832137
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform