Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: ADIR's cFileSkeleton Parameter
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
BUG: ADIR's cFileSkeleton Parameter
Divers
Thread ID:
00853721
Message ID:
00853721
Vues:
112
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 McCasland
Midlothian, TX USA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform