Autor Beitrag
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 26.11.05 17:37 
Hi,
ich habe eine Listbox in der ein Pfad steht (D:\bla.txt). Mit folgenden Code lasse ich den eintrag der listbox welcher den gleichen index wie der aktive tab meiner pagecontrol hat als speicherpfad für mein synedit benutzen.

ausblenden Delphi-Quelltext
1:
(PageControl1.ActivePage.Controls[0as TSynEdit).Lines.SavetoFile(listbox1.Items.ValueFromIndex[PageControl1.ActivePage.pageindex]);					


Aber anstatt D:\bla.txt bekomme ich D:\:\bla.txt ausgegeben. Wo liegt mein Fehler???

Schonmal Danke... ;-)
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10181
Erhaltene Danke: 1254

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 27.11.05 13:09 
Moin!

Probier das mal so:
ausblenden Delphi-Quelltext
1:
(PageControl1.ActivePage.Controls[0as TSynEdit).Lines.SavetoFile(listbox1.Items.Strings[PageControl1.ActivePage.pageindex]);					

cu
Narses