Autor Beitrag
csigg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Mi 27.04.05 08:46 
Kann ich aus einem String TStrings machen??
ausblenden Delphi-Quelltext
1:
 BackupFile.Add(BackUpFile);					

Add aktzeptiert nur TStirgs??
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Mi 27.04.05 08:56 
Da kannst du eine TStringList verwenden - z.B. so:

ausblenden Delphi-Quelltext
1:
2:
  backupFileList := TStringlist.Create();
  backupFileList.Add(backupFile);


Hinterher musst du die Stringliste natürlcih wieder freigeben.

Stefan
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 27.04.05 08:56 
Nee, geht nicht.
Was ist den BackupFile für ein Typ? Vielleicht gibt es für das Objekt eine andere Methode?
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Mi 27.04.05 09:00 
Ich erstelle ein backup einer Datenbank. Über BackupFile geb ich den Namen der Datei an.
Wenn ich dem BackupFile aber edit1.text zuweise dann geht, warum knna ich dann nicht test: string;
test := edit1.text;
Backupfile.Add(test);
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 27.04.05 09:09 
Sorry, aber ich weiß immer noch nicht, von welchem Typ BackupFile ist. Ist das ein String oder eine TListBox....?
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Mi 27.04.05 09:16 
hat sich erledigt, hab nur ne Variable genannt wie funtion
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 27.04.05 09:18 
Sowas hatte ich vermutet, als ich deinen anderen Thread gelesen hatte. Na denn. :wink: