Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp 6.0 viewing files as unsorted with Windows Explore
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00276232
Message ID:
00276254
Views:
22
Hi Sylvain,

Thanks, and thats too bad for me.

All the files added were created the same time but were added to the folder on a totally independant field (hip number).

I thought this could be done in DOS with the dir command with a switch, and was hoping Explore would allow it also.

Thanks,

Jim



>AFAIK, you can't turn off the sort order in Windows Explorer. But if you sort the files by date, you should see the list of files in the order they were created.
>Below is code that adds files to a folder, supposedly in order determeined by the index on the table "mixed.dbf", which would be hip number order.
>>
>>I'd like to view these files with the Windows Explore program in the order they were added to the folder (ie; hip number) but it seems that Explore orders the files in a pre-determined manner, through the headers (name, type, size, date modified).
>>
>>Is there a way to turn the sort function in Explore off, so files can be viewed in the order they were added to the folder?
>>
>>***MIXEDCOMBINE.PRG
>>use mixed order hip_no in 0
>>use ahorse in 0
>>select mixed
>>scan
>>mname = name
>>select ahorse
>>locate for name = trim(mname)
>>if ! found()
>>IF EOF()
>>LOOP
>>ENDIF
>>SKIP
>>loop
>>endif
>>store alltrim(name) to cname
>>store "c:\pedigrees\mixedcombined\pedigrees\" to cdestination
>>if ! file(cname)
>>wait 'not found'
>>else
>>copy file (cname) to cdestination + (cname)
>>endif
>>endscan
>>close data
>>return
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform