Aber wenn ihc dass dann so mache, dann bekomme ihc keine Ausgabe.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24:
| Procedure TGameFiles.FindFiles (aPath, aFindMask: String; aResult: tStrings); Var FindRec: tSearchRec; Begin If (aPath = '') or (aFindMask = '') or Not Assigned (aResult) Then Exit;
If aPath[Length (aPath)] <> '\' Then aPath := aPath + '\';
If FindFirst (aPath + aFindMask, faAnyFile, FindRec) = 0 Then Repeat If (FindRec.Name <> '.') and (FindRec.Name <> '..') Then aResult.Add (aPath + FindRec.Name); Until FindNext (FindRec) <> 0;
FindClose (FindRec); End; |
Und der Aufruf sieht folgender Maßen aus:
Delphi-Quelltext
1:
| FindFiles('.am', GetApplicationDirectory, ListSpielstand.Strings); |
Wieso funktioniert die Ausgabe jetzt nicht?