Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ADir()
Message
From
09/02/2002 07:19:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/02/2002 16:11:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00617679
Message ID:
00617871
Views:
14
>indwgno = '842239'
> Set Default To &prfiles &&Look in Prerel to get files
> dtt2 = ADir(gnLODModels,AllT(indwgno) + '*.*')
> =Asort(gnLODModels)
> Set Default to &defpath
> dtt3 = Int(ALen(gnLODModels)/5)
> ? dtt3

Steve,
-You don't need to change default
-Macro substition is dangerous where path might contain a space, use name expression instead
indwgno = '842239'
lcPath = addbs(prFiles)
dtt2 = ADir(gnLODModels, lcPath + indwgno + '*.*')
*=Asort(gnLODModels) && Might be
? dtt2
? 'Files listing'
? '-------------'
for ix=1 to dtt2
 ?  lcPath+gnLODModels[ix,1], ;
    gnLODModels[ix,2], ;
    gnLODModels[ix,3], ;
    gnLODModels[ix,4]
endfor
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
Reply
Map
View

Click here to load this message in the networking platform