jo das hat geklappt...froi
hier fals jemand sie den QT mal lesen möche,...
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 FindFiles (aPath, aFindMask: String; aWithSub: Boolean; aResult: tStrings); Var FindRec: tSearchRec; CFE:string; 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 Begin CFE:=ChangeFileExt(FindRec.Name, ''); aResult.Add (CFE); end; Until FindNext (FindRec) <> 0; FindClose (FindRec); End; |
zum aufrufen
Delphi-Quelltext
1: 2: 3: 4: 5:
| procedure TSuchKontakt.ComboBoxDropDown(Sender: TObject); begin combobox.clear; FindFiles (unit1.savedate, '*.txt', false, combobox.Items); end; |
jetzt hab ich aber doch noch ne frage wie kann ich das aus einem anderen Form aufrufen einefach so hinschriebn funzt net da sagt er mir: Undefinierte bezeichnung...
MfG
shoppix