Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: ADIR's cFileSkeleton Parameter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00853721
Message ID:
00853733
Vues:
22
>Problem: The cFileSkeleton parameter of the ADIR() function does not properly respect the ? wildcard. Repro code:
>CLEAR
>STRTOFILE('test', '20031010.txt')
>STRTOFILE('test', '20031011.txt')
>STRTOFILE('test', '20031012.txt')
>STRTOFILE('test', '20031013.txt')
>STRTOFILE('test', '20031014.txt')
>STRTOFILE('test', '20031014a.txt')
>lnRetVal = ADIR(laFiles, '2003????.txt')
>ASORT(laFiles)
>FOR lnI = 1 TO lnRetVal
>    ? laFiles(lnI, 1)
>ENDFOR
>?
>? [File 20031014a should not have been selected]
>ERASE 20031010.txt
>ERASE 20031011.txt
>ERASE 20031012.txt
>ERASE 20031013.txt
>ERASE 20031014.txt
>ERASE 20031014a.txt
>
>Expected Results: filter out any file that does not match the cFileSkeleton parameter.

Mark,

Looks like a bug to me. The question I have is, "Is it VFP's or Windows?" I'd guess it's Windows due to the underlying API calls, but I haven't tested it. You want me to test it?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform