Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Functions working different
Message
From
06/03/2002 02:50:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/03/2002 13:39:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00627626
Message ID:
00628857
Views:
20
>>>>>I just started upgrading to VFP 7.0 from 5.0a.
>>>>>
>>>>>The first problem I ran into was adir() working different, and it's not listed as a function that works different.
>>>>>
>>>>>It occured to me that maybe the list of differences was referring ONLY to how they work different from VFP 6.0 which I never used.
>>>>>
>>>>>Is there a list somewhere that has all the commands and functions that work different between 6.0 and 5.0?
>>>>
>>>>In help file they're documented under "Getting started\What's new..".
>>>>However per adir() only another parameter is added. W/o that last parameter AFAIK it works the same way from fox2x and later.
>>>>Cetin
>>>
>>>All I can find is "Behavior Changes since the Previous Version" (changes since 6.0), but I don't have 6.0, so I don't know what changed for 6.0. I'm trying to find behavior changes from 5.0 to 6.0.
>>>
>>>Per adir(), in 5.0:
=adir( laArray, <DirectoryName> + '*', 'D' )
produces ONLY directory names dispite the fact that the help file says that it will produce files AND directories. In 7.0 it behaves as the help file says.
>>
>>Bill,
>>I don't know documentation exactly but AFAIK adir() with 'D' parameter produces a list of files+directories since fox2x. IOW it was the same way and 3rd parameter having 'D', 'H','S','V' combinations only adds those as well. My directory recursing functions explicitly check 5th column in returned array since fox2x for that reason.
>>PS: I just rechecked in 5.0 and it returned files+dirs as expected.
>>Cetin
>
>See reply from George Tasker, for additional info. Adir() was changed in 6.0 according to him.

I see what you're saying. Only '*' behaves different (and single dot).
adir(arrD,'*','D') returns all files & folders w/o an extension in VFP5, in VFP6-7 it returns all files+folders regardless of extension. I wasn't aware of it for I never used this ambigious format.
adir(arrD,'.','D') returns 2 while should be 1 or 0 (VFP6-7 returns correct).
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