Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp 6.0 viewing files as unsorted with Windows Explore
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Vfp 6.0 viewing files as unsorted with Windows Explore
Divers
Thread ID:
00276232
Message ID:
00276232
Vues:
66
Hello All,

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

Thanks for any advice you can give me.

Jim Harvey
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform